diff options
Diffstat (limited to 'lib/handlebars/compiler/compiler.js')
-rw-r--r-- | lib/handlebars/compiler/compiler.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/handlebars/compiler/compiler.js b/lib/handlebars/compiler/compiler.js index 3f7aa3b..cfcc70a 100644 --- a/lib/handlebars/compiler/compiler.js +++ b/lib/handlebars/compiler/compiler.js @@ -74,6 +74,7 @@ Compiler.prototype = { this.depths = {list: []}; this.options = options; this.stringParams = options.stringParams; + this.trackIds = options.trackIds; // These changes will propagate to the other compiler components var knownHelpers = this.options.knownHelpers; @@ -395,6 +396,9 @@ Compiler.prototype = { this.sexpr(val); } } else { + if (this.trackIds) { + this.opcode('pushId', val.type, val.idName || val.stringModeValue); + } this.accept(val); } }, |