Makes optimizer code a bit more understandable.
authorJakub Pawlowicz <jakub@goalsmashers.com>
Tue, 25 Feb 2014 21:16:06 +0000 (21:16 +0000)
committerJakub Pawlowicz <jakub@goalsmashers.com>
Tue, 25 Feb 2014 21:17:02 +0000 (21:17 +0000)
lib/properties/optimizer.js

index 2b5698d..760067f 100644 (file)
@@ -188,9 +188,10 @@ module.exports = function Optimizer(compatibility) {
             break;
 
           var lastToken = merged[toOverridePosition];
+          var wasImportant = lastToken[2];
           var wasIEHack = lastToken[3];
 
-          if (merged[toOverridePosition][2] && !isImportant)
+          if (wasImportant && !isImportant)
             continue tokensLoop;
 
           if (compatibility && !wasIEHack && isIEHack)