Skip to content

Commit

Permalink
Effects: Allow named speeds to be 0. Fixes #6657 - Allow named speeds…
Browse files Browse the repository at this point in the history
… to be 0
  • Loading branch information
jryans authored and scottgonzalez committed Nov 16, 2010
1 parent c2139fc commit 859c87e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/jquery.effects.core.js
Expand Up @@ -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;

Expand Down

0 comments on commit 859c87e

Please sign in to comment.