Allow named animation speed to be 0. Fixes #6579.
This commit is contained in:
parent
5d45448e71
commit
5c055040d3
1 changed files with 1 additions and 1 deletions
2
src/effects.js
vendored
2
src/effects.js
vendored
|
@ -256,7 +256,7 @@ jQuery.extend({
|
|||
};
|
||||
|
||||
opt.duration = jQuery.fx.off ? 0 : typeof opt.duration === "number" ? opt.duration :
|
||||
jQuery.fx.speeds[opt.duration] || jQuery.fx.speeds._default;
|
||||
opt.duration in jQuery.fx.speeds ? jQuery.fx.speeds[opt.duration] : jQuery.fx.speeds._default;
|
||||
|
||||
// Queueing
|
||||
opt.old = opt.complete;
|
||||
|
|
Loading…
Reference in a new issue