No ticket: Small curCSS size optimizations

(cherry picked from commit a339096d6a)

Conflicts:

	src/css/curCSS.js
This commit is contained in:
Richard Gibson 2013-10-15 11:12:31 -04:00
parent 32d61d75e5
commit 024317f03b

View File

@ -53,7 +53,9 @@ if ( window.getComputedStyle ) {
// Support: IE // Support: IE
// IE returns zIndex value as an integer. // IE returns zIndex value as an integer.
return ret === undefined ? ret : ret + ""; return ret === undefined ?
ret :
ret + "";
}; };
} else if ( document.documentElement.currentStyle ) { } else if ( document.documentElement.currentStyle ) {
getStyles = function( elem ) { getStyles = function( elem ) {
@ -101,11 +103,11 @@ if ( window.getComputedStyle ) {
} }
} }
return ret === "" ? "auto" :
// Support: IE // Support: IE
// IE returns zIndex value as an integer. // IE returns zIndex value as an integer.
ret === undefined ? ret : return ret === undefined ?
ret + ""; ret :
ret + "" || "auto";
}; };
} }