X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=src%2Ffx%2Ffx.js;h=d83bf0dd431075fcdbe5428ca76ec3ba4e756819;hb=8ec860d637ca667e8050e0755d55fc1496301d96;hp=0ede5eea9ed402743643709d5610b8c430b308ee;hpb=a3806202ffe1ecc85ba6213f06cc7b6f68c49695;p=jquery.git diff --git a/src/fx/fx.js b/src/fx/fx.js index 0ede5ee..d83bf0d 100644 --- a/src/fx/fx.js +++ b/src/fx/fx.js @@ -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;