From 2e12efdeda50cb6818a337078c4f4f555c2558e3 Mon Sep 17 00:00:00 2001 From: jrburke Date: Thu, 29 May 2014 09:59:49 -0700 Subject: [PATCH] Fixes AMD registration, volo package.json entry This change allows the AMD define signature to match what common AMD optimizers use to find define calls that need naming. Also updates the volo package.json entry so that the correct version of mustache can be fetched properly. --- mustache.js | 8 +++----- package.json | 2 +- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/mustache.js b/mustache.js index 700f536..be3d01a 100644 --- a/mustache.js +++ b/mustache.js @@ -9,9 +9,9 @@ if (typeof exports === "object" && exports) { factory(exports); // CommonJS } else if (typeof define === "function" && define.amd) { - define(factory({})); // AMD + define(['exports'], factory); // AMD } else { - global.Mustache = factory({}); //