return reference to the instantiated controller from m.module
This commit is contained in:
parent
445087c606
commit
1222eb913a
1 changed files with 1 additions and 0 deletions
|
|
@ -455,6 +455,7 @@ Mithril = m = new function app(window, undefined) {
|
||||||
modules[index] = module
|
modules[index] = module
|
||||||
controllers[index] = new module.controller
|
controllers[index] = new module.controller
|
||||||
m.endComputation()
|
m.endComputation()
|
||||||
|
return controllers[index]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
m.redraw = function(force) {
|
m.redraw = function(force) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue