Skip to content

Commit 60c2da8

Browse files
committed
Minor changes to make it compatible with both WSH and ASP (eslint compatible)
Made it eslint compatible.
1 parent c03f25a commit 60c2da8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

mustache.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,16 @@
33
* http://github.com/janl/mustache.js
44
*/
55

6-
/*global define: false*/
6+
/*global define: false Mustache: true*/
77

88
(function defineMustache (global, factory) {
99
if (typeof exports === 'object' && exports) {
1010
factory(exports); // CommonJS
1111
} else if (typeof define === 'function' && define.amd) {
1212
define(['exports'], factory); // AMD
1313
} else {
14-
factory(global.Mustache = {}); // <script>
14+
Mustache = {};
15+
factory(Mustache); // script, wsh, asp
1516
}
1617
}(this, function mustacheFactory (mustache) {
1718

0 commit comments

Comments
 (0)