Allow named animation speed to be 0. Fixes #6579.

This commit is contained in:
J. Ryan Stinnett 2010-05-17 16:48:17 -05:00 committed by jeresig
parent 5d45448e71
commit 5c055040d3

2
src/effects.js vendored
View file

@ -256,7 +256,7 @@ jQuery.extend({
}; };
opt.duration = jQuery.fx.off ? 0 : typeof opt.duration === "number" ? opt.duration : 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 // Queueing
opt.old = opt.complete; opt.old = opt.complete;