Commit 024317f0 authored by Richard Gibson's avatar Richard Gibson

No ticket: Small curCSS size optimizations

(cherry picked from commit a339096d)

Conflicts:

	src/css/curCSS.js
parent 32d61d75
......@@ -53,7 +53,9 @@ if ( window.getComputedStyle ) {
// Support: IE
// IE returns zIndex value as an integer.
return ret === undefined ? ret : ret + "";
return ret === undefined ?
ret :
ret + "";
};
} else if ( document.documentElement.currentStyle ) {
getStyles = function( elem ) {
......@@ -101,11 +103,11 @@ if ( window.getComputedStyle ) {
}
}
return ret === "" ? "auto" :
// Support: IE
// IE returns zIndex value as an integer.
ret === undefined ? ret :
ret + "";
// Support: IE
// IE returns zIndex value as an integer.
return ret === undefined ?
ret :
ret + "" || "auto";
};
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment