Browse Source

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 years ago
parent
commit
7038a04efd
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      mustache.js

+ 2
- 2
mustache.js View File

@@ -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) {



Loading…
Cancel
Save