aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichał Gołębiowski <m.goleb@gmail.com>2015-05-11 22:25:28 +0200
committerMichał Gołębiowski <m.goleb@gmail.com>2015-05-12 00:05:35 +0200
commit7855a1a7d8a5c959d4ef2f951b4eb971908ac96f (patch)
tree869e5f2cb79512a0aa15b5a96d225b6f2842061f
parent86419b10bfa5e3b71a7d416288ab806d47a31d1f (diff)
downloadjquery-7855a1a7d8a5c959d4ef2f951b4eb971908ac96f.tar.gz
jquery-7855a1a7d8a5c959d4ef2f951b4eb971908ac96f.zip
CSS: Collapse a double if statement into one
Saves 3 bytes gzipped Closes gh-2296
-rw-r--r--src/css/curCSS.js3
1 files changed, 0 insertions, 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 );