Просмотр исходного кода

global.Mustache triggers JScript runtime error

Because ASP/WSH script environments are language agnostic, one cannot assume it can be managed like a first-class javascript object. By changing the javascript global explicit assignment pattern to implicit assignment pattern (less is more) it works as expected.
pull/612/head
Fabio Zendhi Nagao GitHub 9 лет назад
Родитель
Сommit
7038a04efd
1 измененных файлов: 2 добавлений и 2 удалений
  1. +2
    -2
      mustache.js

+ 2
- 2
mustache.js Просмотреть файл

@@ -11,8 +11,8 @@
} else if (typeof define === 'function' && define.amd) {
define(['exports'], factory); // AMD
} else {
global.Mustache = {};
factory(global.Mustache); // script, wsh, asp
Mustache = {};
factory(Mustache); // script, wsh, asp
}
}(this, function mustacheFactory (mustache) {



Загрузка…
Отмена
Сохранить