From 35245c57d4b2348809656580abe9423dbce82cbc Mon Sep 17 00:00:00 2001 From: Ben Cherry Date: Tue, 30 Nov 2010 17:10:08 -0800 Subject: [PATCH] small fixes --- mustache.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/mustache.js b/mustache.js index 6c109b5..a9fa959 100644 --- a/mustache.js +++ b/mustache.js @@ -46,9 +46,7 @@ var Mustache = function() { var html = this.render_section(template, context, partials); - var stillNeedsToRender = (html === template); - - if (stillNeedsToRender) { + if (html === template) { if (in_recursion) { return this.render_tags(html, context, partials, true); } @@ -173,7 +171,7 @@ var Mustache = function() { var renderedBefore = before ? that.render_tags(before, context, partials, true) : "", // after may contain both sections and tags, so use full rendering function - renderedAfter = after ? that.render(after, context, partials, true) : ""; + renderedAfter = after ? that.render_section(after, context, partials, true) : ""; var value = that.find(name, context); if(type == "^") { // inverted section