Skip to content

Commit

Permalink
Allow named animation speed to be 0. Fixes #6579.
Browse files Browse the repository at this point in the history
  • Loading branch information
jryans committed May 17, 2010
1 parent 1533bf7 commit 1804e4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/effects.js
Expand Up @@ -254,7 +254,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;
Expand Down

0 comments on commit 1804e4f

Please sign in to comment.