From 1222eb913a2eaceb5f41d40229d06cbef07ba2cc Mon Sep 17 00:00:00 2001 From: "C. James Winslow" Date: Wed, 10 Sep 2014 16:21:33 -0700 Subject: [PATCH] return reference to the instantiated controller from m.module --- mithril.js | 1 + 1 file changed, 1 insertion(+) diff --git a/mithril.js b/mithril.js index c0983bb1..56880897 100644 --- a/mithril.js +++ b/mithril.js @@ -455,6 +455,7 @@ Mithril = m = new function app(window, undefined) { modules[index] = module controllers[index] = new module.controller m.endComputation() + return controllers[index] } } m.redraw = function(force) {