Selaa lähdekoodia

proper undefined check

tags/0.5.0-vsc
unknown 16 vuotta sitten
vanhempi
commit
d75f981cf9
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. +2
    -2
      mustache.js

+ 2
- 2
mustache.js Näytä tiedosto

@@ -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;


Loading…
Peruuta
Tallenna