summaryrefslogtreecommitdiffstats
path: root/lib/handlebars/compiler/compiler.js
diff options
context:
space:
mode:
authorkpdecker <kpdecker@gmail.com>2014-01-04 11:05:57 -0600
committerkpdecker <kpdecker@gmail.com>2014-01-06 16:07:56 -0600
commit0f328f375e9682642676d6c58d1cf307a63155f0 (patch)
treec597a39674570bf9e38e9cf035ece2f8c0fed39f /lib/handlebars/compiler/compiler.js
parentc73aceb3d3415e9847fa0680f42bf80d5a652bac (diff)
downloadhandlebars.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.js2
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);