Преглед на файлове

Hit a snafu when in the browser.

with-js-extras
Paul J. Davis преди 16 години
родител
ревизия
10adbaf4fe
променени са 1 файла, в които са добавени 5 реда и са изтрити 2 реда
  1. +5
    -2
      mustache.js

+ 5
- 2
mustache.js Целия файл

@@ -164,8 +164,11 @@ var Mustache = function() {
while(parts.length) {
p = parts.shift();
if(ctx[p] === undefined) {
src = context.toSource();
src = src.replace(/^\(|\)$/g, "");
if(typeof(context.toSource) == "function") {
src = context.toSource().replace(/^\(|\)$/g, "");
} else {
src = context.toString();
}
throw({message: "'" + name + "' not found in context: " + src});
}
ctx = ctx[p];


Loading…
Отказ
Запис