Explorar el Código

#343: Resolved having dot in the key name

pull/795/head
Vaspar-a hace 4 años
padre
commit
e827c5572b
Se han modificado 2 ficheros con 10420 adiciones y 47 borrados
  1. +4
    -1
      mustache.js
  2. +10416
    -46
      package-lock.json

+ 4
- 1
mustache.js Ver fichero

@@ -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
La diferencia del archivo ha sido suprimido porque es demasiado grande
Ver fichero


Cargando…
Cancelar
Guardar