]> source.dussan.org Git - jquery.git/commitdiff
Fixed the giant negative number issue that Opera was having.
authorJohn Resig <jeresig@gmail.com>
Thu, 24 Aug 2006 23:45:39 +0000 (23:45 +0000)
committerJohn Resig <jeresig@gmail.com>
Thu, 24 Aug 2006 23:45:39 +0000 (23:45 +0000)
src/fx/fx.js

index 3e8885dd4dc850760a540549e9793febe1353bee..72bfbf83ab86d2898fba542b49f2146e4698873b 100644 (file)
@@ -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