Moved logic for handling .animate({}), doesn't queue anymore. Fixes #5459.
This commit is contained in:
parent
f0505c6d75
commit
0d5bd17461
2 changed files with 15 additions and 5 deletions
8
src/effects.js
vendored
8
src/effects.js
vendored
|
@ -108,6 +108,10 @@ jQuery.fn.extend({
|
|||
animate: function( prop, speed, easing, callback ) {
|
||||
var optall = jQuery.speed(speed, easing, callback);
|
||||
|
||||
if ( jQuery.isEmptyObject( prop ) ) {
|
||||
return this.each( optall.complete );
|
||||
}
|
||||
|
||||
return this[ optall.queue === false ? "each" : "queue" ](function() {
|
||||
var opt = jQuery.extend({}, optall), p,
|
||||
hidden = this.nodeType === 1 && jQuery(this).is(":hidden"),
|
||||
|
@ -181,10 +185,6 @@ jQuery.fn.extend({
|
|||
}
|
||||
});
|
||||
|
||||
if ( jQuery.isEmptyObject( prop ) ) {
|
||||
return optall.complete.call(this);
|
||||
}
|
||||
|
||||
// For JS strict compliance
|
||||
return true;
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue