소스 검색

Hit a snafu when in the browser.

with-js-extras
Paul J. Davis 16 년 전
부모
커밋
10adbaf4fe
1개의 변경된 파일5개의 추가작업 그리고 2개의 파일을 삭제
  1. +5
    -2
      mustache.js

+ 5
- 2
mustache.js 파일 보기

@@ -164,8 +164,11 @@ var Mustache = function() {
while(parts.length) {
p = parts.shift();
if(ctx[p] === undefined) {
src = context.toSource();
src = src.replace(/^\(|\)$/g, "");
if(typeof(context.toSource) == "function") {
src = context.toSource().replace(/^\(|\)$/g, "");
} else {
src = context.toString();
}
throw({message: "'" + name + "' not found in context: " + src});
}
ctx = ctx[p];


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