diff --git a/src/css/curCSS.js b/src/css/curCSS.js index 1af1812cd..1f3b73428 100644 --- a/src/css/curCSS.js +++ b/src/css/curCSS.js @@ -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"; }; }