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

This commit is contained in:
jeresig 2009-12-05 14:33:40 -05:00
parent b24da33f52
commit b776e2b79a

View File

@ -219,7 +219,7 @@ jQuery.each({
jQuery.extend({
speed: function(speed, easing, fn) {
var opt = typeof speed === "object" ? speed : {
var opt = speed && typeof speed === "object" ? speed : {
complete: fn || !fn && easing ||
jQuery.isFunction( speed ) && speed,
duration: speed,