summaryrefslogtreecommitdiffstats
path: root/lib/handlebars/compiler/compiler.js
diff options
context:
space:
mode:
authorkpdecker <kpdecker@gmail.com>2014-01-17 20:42:02 -0600
committerkpdecker <kpdecker@gmail.com>2014-01-17 20:42:02 -0600
commitd4cfe90959c5a585e5d87e31038eb2f0432f87a5 (patch)
tree6a7699604f3165f7e089c899ca6b34d1f3a7def2 /lib/handlebars/compiler/compiler.js
parent051618c024333404746795304f5858f3ef56a215 (diff)
downloadhandlebars.js-d4cfe90959c5a585e5d87e31038eb2f0432f87a5.zip
handlebars.js-d4cfe90959c5a585e5d87e31038eb2f0432f87a5.tar.gz
handlebars.js-d4cfe90959c5a585e5d87e31038eb2f0432f87a5.tar.bz2
Allow decimal number values
Fixes #472
Diffstat (limited to 'lib/handlebars/compiler/compiler.js')
-rw-r--r--lib/handlebars/compiler/compiler.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/handlebars/compiler/compiler.js b/lib/handlebars/compiler/compiler.js
index b92289a..83eca24 100644
--- a/lib/handlebars/compiler/compiler.js
+++ b/lib/handlebars/compiler/compiler.js
@@ -321,8 +321,8 @@ Compiler.prototype = {
this.opcode('pushString', string.string);
},
- INTEGER: function(integer) {
- this.opcode('pushLiteral', integer.integer);
+ NUMBER: function(number) {
+ this.opcode('pushLiteral', number.number);
},
BOOLEAN: function(bool) {