Fix missing parameters for pathed mustaches

Fixes #658
This commit is contained in:
kpdecker
2014-01-17 22:56:40 -06:00
parent d4cfe90959
commit 33921beaa0
4 changed files with 37 additions and 7 deletions
@@ -503,8 +503,8 @@ JavaScriptCompiler.prototype = {
this.context.aliases.helperMissing = 'helpers.helperMissing';
this.useRegister('helper');
var nonHelper = this.popStack();
var helper = this.setupHelper(paramSize, name);
var nonHelper = this.nameLookup('depth' + this.lastContext, name, 'context');
var lookup = 'helper = ' + helper.name + ' || ' + nonHelper + ' || helperMissing';
if (helper.paramsInit) {