Kaynağa Gözat

#343: Resolved having dot in the key name

pull/795/head
Vaspar-a 4 yıl önce
ebeveyn
işleme
e827c5572b
2 değiştirilmiş dosya ile 10420 ekleme ve 47 silme
  1. +4
    -1
      mustache.js
  2. +10416
    -46
      package-lock.json

+ 4
- 1
mustache.js Dosyayı Görüntüle

@@ -396,7 +396,10 @@ Context.prototype.lookup = function lookup (name) {
var value;
if (cache.hasOwnProperty(name)) {
value = cache[name];
} else {
} else if (name.includes('.') && cache['.'] && cache['.'].hasOwnProperty(name)) {
value = cache['.'][name];
}
else {
var context = this, intermediateValue, names, index, lookupHit = false;

while (context) {


+ 10416
- 46
package-lock.json
Dosya farkı çok büyük olduğundan ihmal edildi
Dosyayı Görüntüle


Yükleniyor…
İptal
Kaydet