effects core: fixed undefined options error

This commit is contained in:
Richard Worth 2009-01-30 05:46:46 +00:00
parent ecce15895d
commit 55953d650a

View 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() {