Review from Geoff

This commit is contained in:
Nick Martin
2013-02-06 19:37:20 -08:00
parent 68049c276d
commit 38c5795c71
2 changed files with 2 additions and 3 deletions

View File

@@ -76,7 +76,7 @@ Handlebars.to_json_ast = function (code) {
var choices = {
ID: function (node) {return identifier(node);},
STRING: function (node) {return ''+node.string;},
STRING: function (node) {return node.string;},
INTEGER: function (node) {return +node.integer;},
BOOLEAN: function (node) {return (node.bool === 'true');}
};

View File

@@ -1028,8 +1028,7 @@ Tinytest.add('templating - helper typecast Issue #617', function (test) {
"[number,0][number,1][number,-1][number,10][number,-10]" +
// errors
"[undefined,undefined][undefined,undefined]" +
// for some reason handlebars has an extra argument. this is an
// internal detail. if it changes, just change this test.
// handlebars 'options' argument. appended to args of all helpers.
"[object]");
});