mirror of
https://github.com/jquery/jquery.git
synced 2026-02-01 14:54:57 -05:00
CSS: Collapse a double if statement into one
Saves 3 bytes gzipped Closes gh-2296
This commit is contained in:
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user