浏览代码

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;


正在加载...
取消
保存