S JavaScriptem funguje tato webová stránka lépe.
Domů
Procházet
Nápověda
Přihlásit se
jan
/
mustache.js
zrcadlo
https://github.com/janl/mustache.js
Sledovat
1
Oblíbit
0
Rozštěpit
0
Zdrojový kód
Úkoly
0
Vydání
46
Wiki
Aktivita
Procházet zdrojové kódy
Bugfix for view context cache picking methods from Object.prototype instead of the view.
Fixes
#442
tags/v2.1.0
Phillip Johnsen
před 11 roky
rodič
e31a89a239
revize
e801e842a7
4 změnil soubory
, kde provedl
7 přidání
a
1 odebrání
Rozdělené zobrazení
Diff Options
Zobrazit statistiky
Download Patch File
Stáhněte rozdílový soubor
+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
Zobrazit soubor
@@ -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
Zobrazit soubor
@@ -0,0 +1,4 @@
({
valueOf: 'Avoids methods',
watch: 'in Object.prototype'
})
+ 1
- 0
test/_files/avoids_obj_prototype_in_view_cache.mustache
Zobrazit soubor
@@ -0,0 +1 @@
{{valueOf}} {{watch}}
+ 1
- 0
test/_files/avoids_obj_prototype_in_view_cache.txt
Zobrazit soubor
@@ -0,0 +1 @@
Avoids methods in Object.prototype
Zapsat
Náhled
Načítá se…
Zrušit
Uložit