Merge branch 'components' of https://github.com/pelonpelon/mithril.js into pelonpelon-components
Conflicts: docs/mithril.module.md
This commit is contained in:
commit
57c199e2c6
3 changed files with 5 additions and 5 deletions
|
|
@ -104,7 +104,7 @@ m.module(document, module1);
|
|||
|
||||
var module2 = {};
|
||||
module2.controller = function() {};
|
||||
module1.view = function() {};
|
||||
module2.view = function() {};
|
||||
|
||||
m.module(document, module2); // logs "unloading module 1"
|
||||
```
|
||||
|
|
@ -337,4 +337,4 @@ where:
|
|||
- **returns Object controllerInstance**
|
||||
|
||||
An instance of the controller constructor
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue