From 27142df4f55a070f5507b74518ca807e014111ca Mon Sep 17 00:00:00 2001 From: Mihai Bazon Date: Tue, 7 Jan 2014 12:48:21 +0200 Subject: minor: exp["10"] => exp[10] --- lib/compress.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/compress.js b/lib/compress.js index 9a6dd5e5..448657c2 100644 --- a/lib/compress.js +++ b/lib/compress.js @@ -2287,6 +2287,12 @@ merge(Compressor.prototype, { property : prop }); } + var v = parseFloat(prop); + if (!isNaN(v) && v.toString() == prop) { + self.property = make_node(AST_Number, self.property, { + value: parseFloat(prop) + }); + } } return self; }); -- cgit v1.2.3