Skip to content

Commit 19e7244

Browse files
committed
Effects: Handle just passing an effect name.
1 parent 3875cf6 commit 19e7244

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

ui/jquery.effects.core.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -447,6 +447,11 @@ function _normalizeArguments( effect, options, speed, callback ) {
447447
// convert to an object
448448
effect = { effect: effect };
449449

450+
// catch (effect)
451+
if ( options === undefined ) {
452+
options = {};
453+
}
454+
450455
// catch (effect, callback)
451456
if ( $.isFunction( options ) ) {
452457
callback = options;

0 commit comments

Comments
 (0)