]> source.dussan.org Git - jquery-ui.git/commitdiff
effects core: fixed undefined options error
authorRichard Worth <rdworth@gmail.com>
Fri, 30 Jan 2009 05:46:46 +0000 (05:46 +0000)
committerRichard Worth <rdworth@gmail.com>
Fri, 30 Jan 2009 05:46:46 +0000 (05:46 +0000)
ui/effects.core.js

index c90bf8b02e9b6278d0ee68d810d35febc6645f67..182eb6ce10923894d9931f6722f3c25b67d7c39b 100644 (file)
@@ -157,7 +157,7 @@ $.fn.extend({
 
        // New effect methods
        effect: function(fx, options, speed, callback) {
-               return $.effects[fx] ? $.effects[fx].call(this, {method: fx, options: options, duration: speed, callback: callback }) : null;
+               return $.effects[fx] ? $.effects[fx].call(this, {method: fx, options: options || {}, duration: speed, callback: callback }) : null;
        },
 
        show: function() {