mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Review from Geoff
This commit is contained in:
@@ -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');}
|
||||
};
|
||||
|
||||
@@ -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]");
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user