From e30455533341db99ec9449ded4a15e2e4a528f34 Mon Sep 17 00:00:00 2001 From: Michael Jackson Date: Fri, 13 Jul 2012 23:16:30 -0700 Subject: [PATCH] Fix null section data Fixes #222 --- mustache.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mustache.js b/mustache.js index 903e895..3f1d95b 100644 --- a/mustache.js +++ b/mustache.js @@ -261,7 +261,7 @@ var Mustache; return buffer; } - return callback(context.push(value), this); + return value ? callback(context.push(value), this) : ""; case "function": // TODO: The text should be passed to the callback plain, not rendered. var sectionText = callback(context, this),