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 = {
|
var MyComponent = {
|
||||||
controller: function() {
|
controller: function() {
|
||||||
return {
|
return {
|
||||||
onunload = function() {
|
onunload: function() {
|
||||||
console.log("unloading my component");
|
console.log("unloading my component");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
view: function() {
|
view: function() {
|
||||||
return m("div", "test")
|
return m("div", "test")
|
||||||
};
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
m.mount(document.body, MyComponent);
|
m.mount(document.body, MyComponent);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue