mirror of
https://github.com/jquery/jquery.git
synced 2024-10-05 11:34:18 +00:00
jquery fx: removing 2 unnecessary isFunction calls, options.complete is ALWAYS a function.
This commit is contained in:
parent
d44c5025c4
commit
6b535eb79f
@ -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 );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user