Commit b776e2b7 authored by jeresig's avatar jeresig

Made sure that a null speed doesn't get passed around. Patch from daltonlp. Fixes #5557.

parent b24da33f
...@@ -219,7 +219,7 @@ jQuery.each({ ...@@ -219,7 +219,7 @@ jQuery.each({
jQuery.extend({ jQuery.extend({
speed: function(speed, easing, fn) { speed: function(speed, easing, fn) {
var opt = typeof speed === "object" ? speed : { var opt = speed && typeof speed === "object" ? speed : {
complete: fn || !fn && easing || complete: fn || !fn && easing ||
jQuery.isFunction( speed ) && speed, jQuery.isFunction( speed ) && speed,
duration: speed, duration: speed,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment