X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=src%2Ffx%2Ffx.js;h=72bfbf83ab86d2898fba542b49f2146e4698873b;hb=94fc6aac1990dc3233c70f471432c5b9f230e756;hp=3e8885dd4dc850760a540549e9793febe1353bee;hpb=8a1adfcd2a0ea8fbb72ac53537cbfe6ebeba0cdf;p=jquery.git diff --git a/src/fx/fx.js b/src/fx/fx.js index 3e8885d..72bfbf8 100644 --- a/src/fx/fx.js +++ b/src/fx/fx.js @@ -415,7 +415,8 @@ jQuery.extend({ // Get the current size z.cur = function(){ - return parseFloat( jQuery.curCSS(z.el, prop) ) || z.max(); + var r = parseFloat( jQuery.curCSS(z.el, prop) ); + return r && r > -10000 ? r : z.max(); }; // Start an animation from one number to another