Skip to content
Permalink
Browse files

jquery fx: removing 2 unnecessary isFunction calls, options.complete …

…is ALWAYS a function.
  • Loading branch information
flesler committed May 16, 2008
1 parent d44c502 commit 6b535eb79fdb65df1e16997fa73e57cfcb806bbe
Showing with 2 additions and 2 deletions.
  1. +2 −2 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
@@ -379,7 +379,7 @@ jQuery.fx.prototype = {
}

// 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 );

0 comments on commit 6b535eb

Please sign in to comment.
You can’t perform that action at this time.