Pārlūkot izejas kodu

fixed regression where false-y values *do* need to yield null/empty value iterators

parser-rewrite
nathan@stravinsky.local pirms 16 gadiem
vecāks
revīzija
110b9e9235
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. +1
    -1
      mustache.js

+ 1
- 1
mustache.js Parādīt failu

@@ -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;


Notiek ielāde…
Atcelt
Saglabāt