jquery fx: closes #3496. $.fx.off = true; turns off animations.

This commit is contained in:
Ariel Flesler 2008-10-22 15:23:37 +00:00
parent ad54d14ae5
commit 30751dd9f1

View file

@ -208,7 +208,7 @@ jQuery.extend({
easing: fn && easing || easing && easing.constructor != Function && easing
};
opt.duration = 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;
// Queueing