From: John Resig Date: Thu, 24 Aug 2006 23:45:39 +0000 (+0000) Subject: Fixed the giant negative number issue that Opera was having. X-Git-Url: http://git.asbjorn.it/?a=commitdiff_plain;h=7caca06cfc28fab22ec9c3a2d1363fec8d8c1951;p=jquery.git Fixed the giant negative number issue that Opera was having. --- 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