From 1159c236efd1cfb55e10cf1993d80731a256f587 Mon Sep 17 00:00:00 2001 From: Michael Jackson Date: Mon, 10 Sep 2012 10:11:14 -0700 Subject: [PATCH] Simplify CommonJS check --- mustache.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mustache.js b/mustache.js index 4843e3c..7992c6e 100644 --- a/mustache.js +++ b/mustache.js @@ -8,7 +8,7 @@ var Mustache; (function (exports) { - if (typeof module !== "undefined" && typeof module.exports !== "undefined") { + if (typeof module !== "undefined" && module.exports) { module.exports = exports; // CommonJS } else if (typeof define === "function") { define(exports); // AMD