From 7855a1a7d8a5c959d4ef2f951b4eb971908ac96f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Go=C5=82=C4=99biowski?= Date: Mon, 11 May 2015 22:25:28 +0200 Subject: [PATCH] CSS: Collapse a double if statement into one Saves 3 bytes gzipped Closes gh-2296 --- src/css/curCSS.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/css/curCSS.js b/src/css/curCSS.js index 207139726..f60ab94de 100644 --- a/src/css/curCSS.js +++ b/src/css/curCSS.js @@ -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 );