mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Don't mutate template AST in evaluate. Fixes #1143
This commit is contained in:
@@ -128,6 +128,7 @@ Handlebars.evaluate = function (ast, data, options) {
|
||||
if (id[1] === '') {
|
||||
// an empty path segment is our AST's way of encoding
|
||||
// the presence of 'this.' at the beginning of the path.
|
||||
id = id.slice();
|
||||
id.splice(1, 1); // remove the ''
|
||||
scopedToContext = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user