diff options
author | kpdecker <kpdecker@gmail.com> | 2014-01-04 11:05:57 -0600 |
---|---|---|
committer | kpdecker <kpdecker@gmail.com> | 2014-01-06 16:07:56 -0600 |
commit | 0f328f375e9682642676d6c58d1cf307a63155f0 (patch) | |
tree | c597a39674570bf9e38e9cf035ece2f8c0fed39f /lib/handlebars/compiler/compiler.js | |
parent | c73aceb3d3415e9847fa0680f42bf80d5a652bac (diff) | |
download | handlebars.js-0f328f375e9682642676d6c58d1cf307a63155f0.zip handlebars.js-0f328f375e9682642676d6c58d1cf307a63155f0.tar.gz handlebars.js-0f328f375e9682642676d6c58d1cf307a63155f0.tar.bz2 |
Include name option for all helper calls
All helper calls will have access to `options.name` which is the first id value of the mustache operation.
As part of this the helperMissing call has been simplified to remove the indexed name in order to optimize the call. This is a breaking change.
Fixes #634
Diffstat (limited to 'lib/handlebars/compiler/compiler.js')
-rw-r--r-- | lib/handlebars/compiler/compiler.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/handlebars/compiler/compiler.js b/lib/handlebars/compiler/compiler.js index b428c5f..3c4a9b7 100644 --- a/lib/handlebars/compiler/compiler.js +++ b/lib/handlebars/compiler/compiler.js @@ -170,7 +170,7 @@ Compiler.prototype = { this.opcode('pushProgram', program); this.opcode('pushProgram', inverse); this.opcode('emptyHash'); - this.opcode('blockValue'); + this.opcode('blockValue', sexpr.id.original); } else { this.ambiguousSexpr(sexpr, program, inverse); |