CSS: Collapse a double if statement into one

Saves 3 bytes gzipped

Closes gh-2296
This commit is contained in:
Michał Gołębiowski 2015-05-11 22:25:28 +02:00
parent 86419b10bf
commit 7855a1a7d8

View File

@ -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 );