From 110b9e923563a7d57275d0d96a1d96e8afa0456e Mon Sep 17 00:00:00 2001 From: "nathan@stravinsky.local" Date: Wed, 23 Jun 2010 11:23:58 -0500 Subject: [PATCH] fixed regression where false-y values *do* need to yield null/empty value iterators --- mustache.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mustache.js b/mustache.js index bdd192b..207b30f 100644 --- a/mustache.js +++ b/mustache.js @@ -218,7 +218,7 @@ var Mustache = function() { valueIterator: function(name, context) { var value = this.lookupValue(name, context); var me = this; - if (value == null) { + if (!value) { return function(){}; } else if (value instanceof Function && value.iterator) { return value;