이 웹사이트는 자바스크립트 활성화가 필요합니다.
홈
탐색
도움말
로그인
jan
/
mustache.js
의 미러
https://github.com/janl/mustache.js
보기
1
좋아요
0
포크
0
코드
이슈
0
릴리즈
46
위키
활동
소스 검색
Bugfix for view context cache picking methods from Object.prototype instead of the view.
Fixes
#442
tags/v2.1.0
Phillip Johnsen
11 년 전
부모
e31a89a239
커밋
e801e842a7
4개의 변경된 파일
과
7개의 추가작업
그리고
1개의 파일을 삭제
분할 보기
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
mustache.js
+4
-0
test/_files/avoids_obj_prototype_in_view_cache.js
+1
-0
test/_files/avoids_obj_prototype_in_view_cache.mustache
+1
-0
test/_files/avoids_obj_prototype_in_view_cache.txt
+ 1
- 1
mustache.js
파일 보기
@@ -356,7 +356,7 @@
var cache = this.cache;
var value;
if (
name in cache
) {
if (
cache.hasOwnProperty(name)
) {
value = cache[name];
} else {
var context = this, names, index, lookupHit = false;
+ 4
- 0
test/_files/avoids_obj_prototype_in_view_cache.js
파일 보기
@@ -0,0 +1,4 @@
({
valueOf: 'Avoids methods',
watch: 'in Object.prototype'
})
+ 1
- 0
test/_files/avoids_obj_prototype_in_view_cache.mustache
파일 보기
@@ -0,0 +1 @@
{{valueOf}} {{watch}}
+ 1
- 0
test/_files/avoids_obj_prototype_in_view_cache.txt
파일 보기
@@ -0,0 +1 @@
Avoids methods in Object.prototype
쓰기
미리보기
불러오는 중...
취소
저장