Fixed bug where compiler was continuing to think it was looking at partials after the partial tag was done. Closes GH-14.

This commit is contained in:
Alan Johnson
2010-09-26 17:18:57 -04:00
parent f288a75e39
commit 4989f38ba2
2 changed files with 11 additions and 2 deletions
+2
View File
@@ -462,9 +462,11 @@ Handlebars.Compiler.prototype = {
return;
} else if (this.partial) {
this.addPartial(mustache, param)
this.partial = false;
return;
} else if (this.inverted) {
this.addInvertedSection(mustache);
this.inverted = false;
return;
} else if(this.openBlock) {
this.addBlock(mustache, param, parts)