mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
No ticket: Small curCSS size optimizations
(cherry picked from commit a339096d6a
)
Conflicts:
src/css/curCSS.js
This commit is contained in:
parent
32d61d75e5
commit
024317f03b
@ -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 + "";
|
||||
return ret === undefined ?
|
||||
ret :
|
||||
ret + "" || "auto";
|
||||
};
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user