이 웹사이트는 자바스크립트 활성화가 필요합니다.
홈
탐색
도움말
로그인
jan
/
mustache.js
의 미러
https://github.com/janl/mustache.js
보기
1
좋아요
0
포크
0
코드
이슈
0
릴리즈
46
위키
활동
소스 검색
Add support for resolving template functions using object prototype instead of current view object
pull/514/head
Brook Zhou
10 년 전
부모
c31df4bb9f
커밋
b5fffe9c1e
1개의 변경된 파일
과
7개의 추가작업
그리고
2개의 파일을 삭제
통합 보기
Diff Options
Show Stats
Download Patch File
Download Diff File
+7
-2
mustache.js
+ 7
- 2
mustache.js
파일 보기
@@ -414,8 +414,13 @@
cache[name] = value;
cache[name] = value;
}
}
if (isFunction(value))
value = value.call(this.view);
if (isFunction(value)){
if (names && names.length > 1 && typeof Object.getPrototypeOf(names[names.length-2])[names[names.length-1]] === 'function'){
value = value.call(names[names.length-2]);
} else {
value = value.call(this.view);
}
}
return value;
return value;
};
};
쓰기
미리보기
불러오는 중...
취소
저장