소스 검색

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); localStack.push(context);
} }


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


불러오는 중...
취소
저장