return reference to the instantiated controller from m.module

This commit is contained in:
C. James Winslow 2014-09-10 16:21:33 -07:00
parent 445087c606
commit 1222eb913a

View file

@ -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) {