浏览代码

Fixed a bug when context is a string

tags/0.5.1
utvara 14 年前
父节点
当前提交
4adfb48205
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      mustache.js

+ 1
- 1
mustache.js 查看文件

@@ -149,7 +149,7 @@ var Mustache = (typeof module !== "undefined" && module.exports) || {};
localStack.push(context);
}

if (context && target in context) {
if (context && typeof context === "object" && target in context) {
value = context[target];
break;
}


正在加载...
取消
保存