From 83bc89f188002cdf5a0c855603a34d552ac8a9f3 Mon Sep 17 00:00:00 2001 From: Leo Horie Date: Mon, 24 Nov 2014 10:01:54 -0500 Subject: [PATCH] #355 prevent interop problem w/ QUnit + requireJS --- mithril.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mithril.js b/mithril.js index 7a5d5a93..254d7526 100644 --- a/mithril.js +++ b/mithril.js @@ -974,5 +974,5 @@ Mithril = m = new function app(window, undefined) { return m }(typeof window != "undefined" ? window : {}); -if (typeof module != "undefined" && module !== null) module.exports = m; +if (typeof module != "undefined" && module !== null && module.exports) module.exports = m; if (typeof define == "function" && define.amd) define(function() {return m});