Remove inline option from pushStack

This commit is contained in:
kpdecker
2013-01-21 00:23:08 -06:00
parent 8e9688792b
commit 969b418291
+3 -7
View File
@@ -760,7 +760,8 @@ Handlebars.JavaScriptCompiler = function() {};
// //
// Push an expression onto the stack // Push an expression onto the stack
push: function(expr) { push: function(expr) {
return this.pushStack(expr, true); this.inlineStack.push(expr);
return expr;
}, },
// [pushLiteral] // [pushLiteral]
@@ -955,11 +956,7 @@ Handlebars.JavaScriptCompiler = function() {};
return this.push(new Literal(item)); return this.push(new Literal(item));
}, },
pushStack: function(item, inline) { pushStack: function(item) {
if (inline) {
this.inlineStack.push(item);
return item;
} else {
this.flushInline(); this.flushInline();
var stack = this.incrStack(); var stack = this.incrStack();
@@ -968,7 +965,6 @@ Handlebars.JavaScriptCompiler = function() {};
} }
this.compileStack.push(stack); this.compileStack.push(stack);
return stack; return stack;
}
}, },
replaceStack: function(callback) { replaceStack: function(callback) {