]> source.dussan.org Git - jquery-ui.git/commitdiff
Effects: Handle just passing an effect name.
authorScott González <scott.gonzalez@gmail.com>
Wed, 9 Mar 2011 15:09:29 +0000 (10:09 -0500)
committerScott González <scott.gonzalez@gmail.com>
Wed, 9 Mar 2011 15:09:29 +0000 (10:09 -0500)
ui/jquery.effects.core.js

index 6024c36b0f6937bea512a7c7475b66980e60bcf8..71f775aa12fe4e2e672e32748f81e761c2cb57a9 100644 (file)
@@ -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;