clean-css
Advanced tools
Comparing version 4.1.3 to 4.1.4
@@ -22,3 +22,4 @@ var populateComponents = require('./properties/populate-components'); | ||
var atRule; | ||
var token; | ||
var atRuleTokens; | ||
var atRuleToken; | ||
var zeroAt; | ||
@@ -38,5 +39,9 @@ var i, l; | ||
for (atRule in atRules) { | ||
token = atRules[atRule]; | ||
zeroAt = token[0] == Token.AT_RULE ? 1 : 2; | ||
token[zeroAt] = []; | ||
atRuleTokens = atRules[atRule]; | ||
for (i = 0, l = atRuleTokens.length; i < l; i++) { | ||
atRuleToken = atRuleTokens[i]; | ||
zeroAt = atRuleToken[0] == Token.AT_RULE ? 1 : 2; | ||
atRuleToken[zeroAt] = []; | ||
} | ||
} | ||
@@ -65,3 +70,4 @@ } | ||
match = token[1][0][1].split(' ')[1]; | ||
atRules[match] = token; | ||
atRules[match] = atRules[match] || []; | ||
atRules[match].push(token); | ||
} | ||
@@ -108,3 +114,4 @@ } | ||
match = property[2][1].toLowerCase(); | ||
atRules[match] = token; | ||
atRules[match] = atRules[match] || []; | ||
atRules[match].push(token); | ||
break; | ||
@@ -162,3 +169,4 @@ } | ||
match = token[1][0][1].split(' ')[1]; | ||
atRules[match] = token; | ||
atRules[match] = atRules[match] || []; | ||
atRules[match].push(token); | ||
} | ||
@@ -208,3 +216,4 @@ } | ||
match = token[1].split(' ')[1]; | ||
atRules[match] = token; | ||
atRules[match] = atRules[match] || []; | ||
atRules[match].push(token); | ||
} | ||
@@ -211,0 +220,0 @@ } |
{ | ||
"name": "clean-css", | ||
"version": "4.1.3", | ||
"version": "4.1.4", | ||
"author": "Jakub Pawlowicz <contact@jakubpawlowicz.com> (http://twitter.com/jakubpawlowicz)", | ||
@@ -5,0 +5,0 @@ "description": "A well-tested CSS minifier", |
Sorry, the diff of this file is too big to display
416076
8810