X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=src%2Ffx.js;h=ee8ab81a99f81ea95eb6217fee9653d902c35c91;hb=52fbe5d2a8441c9bca5c2b8b9fa8b2bc388a11c1;hp=37c4680f186b9f76640dbc72984b8a7773294e54;hpb=3f5ff3097c315456fe92c9b1e4578590e1eb8648;p=jquery.git diff --git a/src/fx.js b/src/fx.js index 37c4680..ee8ab81 100644 --- a/src/fx.js +++ b/src/fx.js @@ -81,7 +81,7 @@ jQuery.fn.extend({ for ( p in prop ) { if ( prop[p] == "hide" && hidden || prop[p] == "show" && !hidden ) - return jQuery.isFunction(opt.complete) && opt.complete.call(this); + return opt.complete.call(this); if ( p == "height" || p == "width" ) { // Store display property @@ -378,8 +378,7 @@ jQuery.fx.prototype = { jQuery.attr(this.elem.style, p, this.options.orig[p]); } - // If a callback was provided, execute it - if ( done && jQuery.isFunction( this.options.complete ) ) + if ( done ) // Execute the complete function this.options.complete.call( this.elem );