Skip to content
Permalink
Browse files

Allow named animation speed to be 0. Fixes #6579.

  • Loading branch information
jryans authored and jeresig committed May 17, 2010
1 parent 5d45448 commit 5c055040d3685b2e01ee1ad06e403a3856f4c8b0
Showing with 1 addition and 1 deletion.
  1. +1 −1 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;

0 comments on commit 5c05504

Please sign in to comment.
You can’t perform that action at this time.