From 7038a04efda126d0d1d7ef0442fc5ce438c67827 Mon Sep 17 00:00:00 2001 From: Fabio Zendhi Nagao Date: Mon, 14 Nov 2016 15:50:54 -0200 Subject: [PATCH] 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. --- mustache.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mustache.js b/mustache.js index 5ffdfe64e..6460d9755 100644 --- a/mustache.js +++ b/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) {