diff options
author | Scott González <scott.gonzalez@gmail.com> | 2011-03-09 10:09:29 -0500 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2011-03-09 10:09:29 -0500 |
commit | 19e72449f16dca7c2bca82ea830165ea0183ed36 (patch) | |
tree | a503338025bf61fe8fc13cdea1054d65b7ca4614 /ui | |
parent | 3875cf63e4bef49b0da888bc9c8e60b9512cbf60 (diff) | |
download | jquery-ui-19e72449f16dca7c2bca82ea830165ea0183ed36.tar.gz jquery-ui-19e72449f16dca7c2bca82ea830165ea0183ed36.zip |
Effects: Handle just passing an effect name.
Diffstat (limited to 'ui')
-rw-r--r-- | ui/jquery.effects.core.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ui/jquery.effects.core.js b/ui/jquery.effects.core.js index 6024c36b0..71f775aa1 100644 --- a/ui/jquery.effects.core.js +++ b/ui/jquery.effects.core.js @@ -447,6 +447,11 @@ function _normalizeArguments( effect, options, speed, callback ) { // convert to an object effect = { effect: effect }; + // catch (effect) + if ( options === undefined ) { + options = {}; + } + // catch (effect, callback) if ( $.isFunction( options ) ) { callback = options; |