mirror of
https://github.com/jquery/jquery.git
synced 2026-02-06 07:45:01 -05:00
Allow named animation speed to be 0. Fixes #6579.
This commit is contained in:
committed by
jeresig
parent
5d45448e71
commit
5c055040d3
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;
|
||||
|
||||
Reference in New Issue
Block a user