瀏覽代碼

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


Loading…
取消
儲存