From: Richard Worth Date: Fri, 30 Jan 2009 05:46:46 +0000 (+0000) Subject: effects core: fixed undefined options error X-Git-Tag: 1.6rc6~3 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=55953d650a2f128764ee4679f7a69bcad98f7400;p=jquery-ui.git effects core: fixed undefined options error --- diff --git a/ui/effects.core.js b/ui/effects.core.js index c90bf8b02..182eb6ce1 100644 --- a/ui/effects.core.js +++ b/ui/effects.core.js @@ -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() {