From d90d37f25fa8e3a3a87d29f7083b5fb8f5f59f84 Mon Sep 17 00:00:00 2001 From: busticated Date: Tue, 18 Dec 2012 15:16:37 -0800 Subject: [PATCH] handle case where exports is null --- mustache.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mustache.js b/mustache.js index e4c1467..7467e5b 100644 --- a/mustache.js +++ b/mustache.js @@ -6,7 +6,7 @@ /*global define: false*/ (function (root, factory) { - if (typeof exports === "object") { + if (typeof exports === "object" && exports) { module.exports = factory; // CommonJS } else if (typeof define === "function" && define.amd) { define(factory); // AMD