aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJ. Ryan Stinnett <jryans@gmail.com>2010-05-17 16:48:17 -0500
committerjeresig <jeresig@gmail.com>2010-09-24 10:13:00 -0400
commit5c055040d3685b2e01ee1ad06e403a3856f4c8b0 (patch)
tree7db681a66be1191157d9508c66ed7f08e03b07b0 /src
parent5d45448e713af7d4a1e57a63ecde25589eb31007 (diff)
downloadjquery-5c055040d3685b2e01ee1ad06e403a3856f4c8b0.tar.gz
jquery-5c055040d3685b2e01ee1ad06e403a3856f4c8b0.zip
Allow named animation speed to be 0. Fixes #6579.
Diffstat (limited to 'src')
-rw-r--r--src/effects.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/effects.js b/src/effects.js
index d1d873def..f3163ebbf 100644
--- a/src/effects.js
+++ b/src/effects.js
@@ -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;