Procházet zdrojové kódy

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 před 9 roky
rodič
revize
7038a04efd
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. +2
    -2
      mustache.js

+ 2
- 2
mustache.js Zobrazit soubor

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



Načítá se…
Zrušit
Uložit