Moved unload abort code so that the event is only bound if the xhr transport is used...
[jquery.git] / src / css.js
index 369485e..8a83c60 100644 (file)
@@ -179,7 +179,7 @@ jQuery.each(["height", "width"], function( i, name ) {
                                        if ( val != null ) {
                                                // Should return "auto" instead of 0, use 0 for
                                                // temporary backwards-compat
-                                               return val === "" ? "0px" : val;
+                                               return val === "" || val === "auto" ? "0px" : val;
                                        }
                                }
 
@@ -188,7 +188,7 @@ jQuery.each(["height", "width"], function( i, name ) {
 
                                        // Should return "auto" instead of 0, use 0 for
                                        // temporary backwards-compat
-                                       return val === "" ? "0px" : val;
+                                       return val === "" || val === "auto" ? "0px" : val;
                                }
 
                                return typeof val === "string" ? val : val + "px";