From d75f981cf98c107384ea2c8dced8908e964ca6ee Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 7 Jul 2010 23:51:53 -0400 Subject: [PATCH] proper undefined check --- mustache.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mustache.js b/mustache.js index 66a34ae..784fbab 100644 --- a/mustache.js +++ b/mustache.js @@ -444,11 +444,11 @@ var Mustache = function() { var value; value = this.find(name, contextStack[contextStack.length-1]); - if (value) { return value; } + if (value!==undefined) { return value; } if (contextStack.length>1) { value = this.find(name, contextStack[0]); - if (value) { return value; } + if (value!==undefined) { return value; } } return undefined;