Skip to content

Commit 6b535eb

Browse files
committed
jquery fx: removing 2 unnecessary isFunction calls, options.complete is ALWAYS a function.
1 parent d44c502 commit 6b535eb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/fx.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ jQuery.fn.extend({
8181

8282
for ( p in prop ) {
8383
if ( prop[p] == "hide" && hidden || prop[p] == "show" && !hidden )
84-
return jQuery.isFunction(opt.complete) && opt.complete.call(this);
84+
return opt.complete.call(this);
8585

8686
if ( p == "height" || p == "width" ) {
8787
// Store display property
@@ -379,7 +379,7 @@ jQuery.fx.prototype = {
379379
}
380380

381381
// If a callback was provided, execute it
382-
if ( done && jQuery.isFunction( this.options.complete ) )
382+
if ( done )
383383
// Execute the complete function
384384
this.options.complete.call( this.elem );
385385

0 commit comments

Comments
 (0)