Permalink
Browse files

fixed regression where false-y values *do* need to yield null/empty v…

…alue iterators
  • Loading branch information...
1 parent 90f61c8 commit 110b9e923563a7d57275d0d96a1d96e8afa0456e nathan@stravinsky.local committed Jun 23, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 mustache.js
View
@@ -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;

0 comments on commit 110b9e9

Please sign in to comment.