From 0f0881857f925e3988f985256e2de455751640b6 Mon Sep 17 00:00:00 2001 From: Leo Horie Date: Mon, 13 Apr 2015 08:30:14 -0400 Subject: [PATCH] fix commonjs module declaration --- mithril.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mithril.js b/mithril.js index 2b2d7d5a..1ae33a7c 100644 --- a/mithril.js +++ b/mithril.js @@ -1139,5 +1139,5 @@ var m = (function app(window, undefined) { return m })(typeof window != "undefined" ? window : {}); -if (typeof component != "undefined" && component !== null && component.exports) component.exports = m; +if (typeof module != "undefined" && module !== null && module.exports) module.exports = m; else if (typeof define === "function" && define.amd) define(function() {return m});