Simplify BlockNode by removing intermediate MustacheNode

This commit is contained in:
Martin Muñoz
2014-11-02 14:54:54 -05:00
parent 632fadcea3
commit 12e3d210e8
7 changed files with 53 additions and 38 deletions
+1 -2
View File
@@ -108,7 +108,7 @@ Compiler.prototype = {
},
block: function(block) {
var mustache = block.mustache,
var sexpr = block.sexpr,
program = block.program,
inverse = block.inverse;
@@ -120,7 +120,6 @@ Compiler.prototype = {
inverse = this.compileProgram(inverse);
}
var sexpr = mustache.sexpr;
var type = this.classifySexpr(sexpr);
if (type === "helper") {