Explorar el Código

proper undefined check

tags/0.5.0-vsc
unknown hace 16 años
padre
commit
d75f981cf9
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. +2
    -2
      mustache.js

+ 2
- 2
mustache.js Ver fichero

@@ -444,11 +444,11 @@ var Mustache = function() {
var value;
value = this.find(name, contextStack[contextStack.length-1]);
if (value) { return value; }
if (value!==undefined) { return value; }
if (contextStack.length>1) {
value = this.find(name, contextStack[0]);
if (value) { return value; }
if (value!==undefined) { return value; }
}
return undefined;


Cargando…
Cancelar
Guardar