ソースを参照

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年前
コミット
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) {



読み込み中…
キャンセル
保存