git.asbjorn.biz
/
jquery.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5d45448
)
Allow named animation speed to be 0. Fixes #6579.
author
J. Ryan Stinnett
<jryans@gmail.com>
Mon, 17 May 2010 21:48:17 +0000
(16:48 -0500)
committer
jeresig
<jeresig@gmail.com>
Fri, 24 Sep 2010 14:13:00 +0000
(10:13 -0400)
src/effects.js
patch
|
blob
|
history
diff --git
a/src/effects.js
b/src/effects.js
index
d1d873d
..
f3163eb
100644
(file)
--- 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;