ソースを参照

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;


読み込み中…
キャンセル
保存