diff --git a/lib/compressor/compress/color.js b/lib/compressor/compress/color.js index ce99268a..2925927c 100644 --- a/lib/compressor/compress/color.js +++ b/lib/compressor/compress/color.js @@ -422,7 +422,7 @@ function compressFunction(node, item, list) { } item.data = { - type: 'Hash', + type: 'HexColor', loc: node.loc, value: toHex(args[0]) + toHex(args[1]) + toHex(args[2]) }; @@ -444,7 +444,7 @@ function compressIdent(node, item) { if (hex.length + 1 <= color.length) { // replace for shorter hex value item.data = { - type: 'Hash', + type: 'HexColor', loc: node.loc, value: hex }; diff --git a/lib/compressor/compress/index.js b/lib/compressor/compress/index.js index 521f00fc..72b867ad 100644 --- a/lib/compressor/compress/index.js +++ b/lib/compressor/compress/index.js @@ -8,7 +8,7 @@ var handlers = { Number: require('./Number'), String: require('./String'), Url: require('./Url'), - Hash: require('./color').compressHex, + HexColor: require('./color').compressHex, Identifier: require('./color').compressIdent, Function: require('./color').compressFunction }; diff --git a/lib/compressor/restructure/4-restructShorthand.js b/lib/compressor/restructure/4-restructShorthand.js index 018c7537..a53f1f6f 100644 --- a/lib/compressor/restructure/4-restructShorthand.js +++ b/lib/compressor/restructure/4-restructShorthand.js @@ -115,7 +115,7 @@ TRBL.prototype.getValueSequence = function(declaration, count) { } break; - case 'Hash': // color + case 'HexColor': // color case 'Number': case 'Percentage': break;