More jQuery.speed() fixes.

This commit is contained in:
John Resig 2007-01-10 01:06:22 +00:00
parent a3806202ff
commit 6de5275687

View file

@ -363,7 +363,7 @@ jQuery.extend({
easing: fn && easing || easing && easing.constructor != Function && easing
};
opt.duration = (opt.duration.constructor == Number ?
opt.duration = (opt.duration && opt.duration.constructor == Number ?
opt.duration :
{ slow: 600, fast: 200 }[opt.duration]) || 400;