diff --git a/mithril.js b/mithril.js index 7ab4dcd3..9459ffda 100644 --- a/mithril.js +++ b/mithril.js @@ -12,7 +12,7 @@ global.m = m } /* eslint-enable no-undef */ -})(typeof window !== "undefined" ? window : this, function (global, undefined) { // eslint-disable-line +})(typeof window !== "undefined" ? window : this, function factory(global, undefined) { // eslint-disable-line "use strict" m.version = function () { @@ -76,6 +76,8 @@ return global } + m.deps.factory = m.factory = factory + m.deps(global) /**