From 30751dd9f170e53e5feb6b92a64aa50970db69ef Mon Sep 17 00:00:00 2001 From: Ariel Flesler Date: Wed, 22 Oct 2008 15:23:37 +0000 Subject: [PATCH] jquery fx: closes #3496. $.fx.off = true; turns off animations. --- src/fx.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fx.js b/src/fx.js index 8cb7b99..3fe9369 100644 --- a/src/fx.js +++ b/src/fx.js @@ -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 -- 1.7.10.4