X-Git-Url: http://git.asbjorn.it/?a=blobdiff_plain;f=src%2Ffx%2Ffx.js;h=9f767a9f404bfc4872be2bff62f3518083fee8b8;hb=2b05e24993c48f3b9c2cb9857090dc4b218b8834;hp=d44fd82de8219e6e012b91a65b1b81fc9e3634f5;hpb=4577cd4b16b633a7015d02ff229898b58831dd18;p=jquery.git diff --git a/src/fx/fx.js b/src/fx/fx.js index d44fd82..9f767a9 100644 --- a/src/fx/fx.js +++ b/src/fx/fx.js @@ -340,6 +340,9 @@ jQuery.fn.extend({ else e[ val == "toggle" ? hidden ? "show" : "hide" : val ]( prop ); }); + + // For JS strict compliance + return true; }); }, @@ -376,7 +379,7 @@ jQuery.extend({ complete: fn || !fn && easing || jQuery.isFunction( speed ) && speed, duration: speed, - easing: fn && easing || easing && easing.constructor != Function && easing || (jQuery.easing.swing ? "swing" : "linear") + easing: fn && easing || easing && easing.constructor != Function && easing }; opt.duration = (opt.duration && opt.duration.constructor == Number ? @@ -567,7 +570,7 @@ jQuery.extend({ var p = n / options.duration; // Perform the easing function, defaults to swing - z.now = jQuery.easing[options.easing](p, n, firstNum, (lastNum-firstNum), options.duration); + z.now = jQuery.easing[options.easing || (jQuery.easing.swing ? "swing" : "linear")](p, n, firstNum, (lastNum-firstNum), options.duration); // Perform the next step of the animation z.a();