Explorar el Código

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 hace 9 años
padre
commit
7038a04efd
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. +2
    -2
      mustache.js

+ 2
- 2
mustache.js Ver fichero

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



Cargando…
Cancelar
Guardar