]> source.dussan.org Git - jquery.git/commitdiff
CSS: Collapse a double if statement into one
authorMichał Gołębiowski <m.goleb@gmail.com>
Mon, 11 May 2015 20:25:28 +0000 (22:25 +0200)
committerMichał Gołębiowski <m.goleb@gmail.com>
Mon, 11 May 2015 22:05:35 +0000 (00:05 +0200)
Saves 3 bytes gzipped

Closes gh-2296

src/css/curCSS.js

index 207139726110b3248b69b1b4528328c9f74546a7..f60ab94de1caa62aa0d6411967290ca90a791bef 100644 (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 );