Merge pull request #841 from cnatis/patch-1
Fixed syntax error in example
This commit is contained in:
commit
6971d85d28
1 changed files with 2 additions and 2 deletions
|
|
@ -419,14 +419,14 @@ Often, you will want to do some work before the component is unloaded (i.e. clea
|
|||
var MyComponent = {
|
||||
controller: function() {
|
||||
return {
|
||||
onunload = function() {
|
||||
onunload: function() {
|
||||
console.log("unloading my component");
|
||||
}
|
||||
}
|
||||
},
|
||||
view: function() {
|
||||
return m("div", "test")
|
||||
};
|
||||
}
|
||||
};
|
||||
|
||||
m.mount(document.body, MyComponent);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue