Przeglądaj źródła

Fixed a bug when context is a string

tags/0.5.1
utvara 14 lat temu
rodzic
commit
4adfb48205
1 zmienionych plików z 1 dodań i 1 usunięć
  1. +1
    -1
      mustache.js

+ 1
- 1
mustache.js Wyświetl plik

@@ -149,7 +149,7 @@ var Mustache = (typeof module !== "undefined" && module.exports) || {};
localStack.push(context);
}

if (context && target in context) {
if (context && typeof context === "object" && target in context) {
value = context[target];
break;
}


Ładowanie…
Anuluj
Zapisz