From ab9350983030240fba5c2f85cd6d854db242ab31 Mon Sep 17 00:00:00 2001 From: Michael Jackson Date: Thu, 31 Jan 2013 07:43:38 -0800 Subject: [PATCH] Use scope --- mustache.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mustache.js b/mustache.js index 65a07f3..a91432a 100644 --- a/mustache.js +++ b/mustache.js @@ -5,15 +5,15 @@ /*global define: false*/ -(function (factory) { +(function (root, factory) { if (typeof exports === "object" && exports) { factory(exports); // CommonJS } else if (typeof define === "function" && define.amd) { define(factory({})); // AMD } else { - factory(Mustache = {}); //