diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/compress.js | 6 |
1 files changed, 6 insertions, 0 deletions
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; }); |