Merge pull request #242 from Whoaa512/m.module-return-controller
M.module return controller
This commit is contained in:
commit
7d718a9e76
4 changed files with 16 additions and 14 deletions
|
|
@ -457,6 +457,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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue