mirror of
https://github.com/jquery/jquery.git
synced 2025-01-10 18:24:24 +00:00
No ticket: Small curCSS size optimizations
This commit is contained in:
parent
5ce4b06c28
commit
a339096d6a
@ -14,7 +14,9 @@ function curCSS( elem, name, computed ) {
|
||||
|
||||
// Support: IE9
|
||||
// getPropertyValue is only needed for .css('filter') in IE9, see #12537
|
||||
ret = computed ? computed.getPropertyValue( name ) || computed[ name ] : undefined;
|
||||
if ( computed ) {
|
||||
ret = computed.getPropertyValue( name ) || computed[ name ];
|
||||
}
|
||||
|
||||
if ( computed ) {
|
||||
|
||||
@ -44,9 +46,11 @@ function curCSS( elem, name, computed ) {
|
||||
}
|
||||
}
|
||||
|
||||
return ret !== undefined ?
|
||||
// Support: IE
|
||||
// IE returns zIndex value as an integer.
|
||||
return ret === undefined ? ret : ret + "";
|
||||
ret + "" :
|
||||
ret;
|
||||
}
|
||||
|
||||
return curCSS;
|
||||
|
Loading…
Reference in New Issue
Block a user