Skip to content

Commit 0af7c31

Browse files
committedFeb 7, 2017
Hash -> HexColor
1 parent 773c377 commit 0af7c31

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed
 

‎lib/compressor/compress/color.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ function compressFunction(node, item, list) {
422422
}
423423

424424
item.data = {
425-
type: 'Hash',
425+
type: 'HexColor',
426426
loc: node.loc,
427427
value: toHex(args[0]) + toHex(args[1]) + toHex(args[2])
428428
};
@@ -444,7 +444,7 @@ function compressIdent(node, item) {
444444
if (hex.length + 1 <= color.length) {
445445
// replace for shorter hex value
446446
item.data = {
447-
type: 'Hash',
447+
type: 'HexColor',
448448
loc: node.loc,
449449
value: hex
450450
};

‎lib/compressor/compress/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ var handlers = {
88
Number: require('./Number'),
99
String: require('./String'),
1010
Url: require('./Url'),
11-
Hash: require('./color').compressHex,
11+
HexColor: require('./color').compressHex,
1212
Identifier: require('./color').compressIdent,
1313
Function: require('./color').compressFunction
1414
};

‎lib/compressor/restructure/4-restructShorthand.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ TRBL.prototype.getValueSequence = function(declaration, count) {
115115
}
116116
break;
117117

118-
case 'Hash': // color
118+
case 'HexColor': // color
119119
case 'Number':
120120
case 'Percentage':
121121
break;

0 commit comments

Comments
 (0)
Please sign in to comment.