Преглед изворни кода

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

parser-rewrite
nathan@stravinsky.local пре 16 година
родитељ
комит
110b9e9235
1 измењених фајлова са 1 додато и 1 уклоњено
  1. +1
    -1
      mustache.js

+ 1
- 1
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;


Loading…
Откажи
Сачувај