Permalink
Browse files

Effects: Allow named speeds to be 0. Fixes #6657 - Allow named speeds…

… to be 0
  • Loading branch information...
jryans authored and scottgonzalez committed Nov 16, 2010
1 parent c2139fc commit 859c87e6d92813c7d99c2ceeaad0ded766c820ea
Showing with 1 addition and 1 deletion.
  1. +1 −1 ui/jquery.effects.core.js
@@ -432,7 +432,7 @@ function _normalizeArguments(effect, options, speed, callback) {
speed = speed || options.duration;
speed = $.fx.off ? 0 : typeof speed == 'number'
- ? speed : $.fx.speeds[speed] || $.fx.speeds._default;
+ ? speed : speed in $.fx.speeds ? $.fx.speeds[speed] : $.fx.speeds._default;
callback = callback || options.complete;

0 comments on commit 859c87e

Please sign in to comment.