mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
CSS: Collapse a double if statement into one
Saves 3 bytes gzipped Closes gh-2296
This commit is contained in:
parent
86419b10bf
commit
7855a1a7d8
@ -17,9 +17,6 @@ function curCSS( elem, name, computed ) {
|
||||
// getPropertyValue is only needed for .css('filter') (#12537)
|
||||
if ( computed ) {
|
||||
ret = computed.getPropertyValue( name ) || computed[ name ];
|
||||
}
|
||||
|
||||
if ( computed ) {
|
||||
|
||||
if ( ret === "" && !jQuery.contains( elem.ownerDocument, elem ) ) {
|
||||
ret = jQuery.style( elem, name );
|
||||
|
Loading…
Reference in New Issue
Block a user