Skip to content

Commit 1804e4f

Browse files
committed
Allow named animation speed to be 0. Fixes #6579.
1 parent 1533bf7 commit 1804e4f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/effects.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ jQuery.extend({
254254
};
255255

256256
opt.duration = jQuery.fx.off ? 0 : typeof opt.duration === "number" ? opt.duration :
257-
jQuery.fx.speeds[opt.duration] || jQuery.fx.speeds._default;
257+
opt.duration in jQuery.fx.speeds ? jQuery.fx.speeds[opt.duration] : jQuery.fx.speeds._default;
258258

259259
// Queueing
260260
opt.old = opt.complete;

0 commit comments

Comments
 (0)