Bu web sitesi JavaScript ile daha iyi çalışır.
Ana Sayfa
Keşfet
Yardım
Giriş Yap
jan
/
mustache.js
şunun yansıması
https://github.com/janl/mustache.js
İzle
1
Yıldızla
0
Çatalla
0
Kod
Konular
0
Sürümler
46
Wiki
Aktivite
Kaynağa Gözat
Merge pull request
#461
from janl/fix/context-cache
Bugfix for view context cache
tags/v2.1.0
David da Silva Contín
11 yıl önce
ebeveyn
e31a89a239
e801e842a7
işleme
15e7016895
4 değiştirilmiş dosya
ile
7 ekleme
ve
1 silme
Görünümü Böl
Diff Seçenekleri
İstatistikleri Göster
Yama Dosyasını İndir
Diff Dosyasını İndir
+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
Dosyayı Görüntüle
@@ -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
Dosyayı Görüntüle
@@ -0,0 +1,4 @@
({
valueOf: 'Avoids methods',
watch: 'in Object.prototype'
})
+ 1
- 0
test/_files/avoids_obj_prototype_in_view_cache.mustache
Dosyayı Görüntüle
@@ -0,0 +1 @@
{{valueOf}} {{watch}}
+ 1
- 0
test/_files/avoids_obj_prototype_in_view_cache.txt
Dosyayı Görüntüle
@@ -0,0 +1 @@
Avoids methods in Object.prototype
Yaz
Önizleme
Yükleniyor…
İptal
Kaydet