public
/
clean-css.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3c3eab9
)
Makes optimizer code a bit more understandable.
author
Jakub Pawlowicz
<jakub@goalsmashers.com>
Tue, 25 Feb 2014 21:16:06 +0000
(21:16 +0000)
committer
Jakub Pawlowicz
<jakub@goalsmashers.com>
Tue, 25 Feb 2014 21:17:02 +0000
(21:17 +0000)
lib/properties/optimizer.js
patch
|
blob
|
history
diff --git
a/lib/properties/optimizer.js
b/lib/properties/optimizer.js
index
2b5698d
..
760067f
100644
(file)
--- a/
lib/properties/optimizer.js
+++ b/
lib/properties/optimizer.js
@@
-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)