Merge pull request #841 from cnatis/patch-1

Fixed syntax error in example
This commit is contained in:
Leo Horie 2015-11-12 14:03:35 -05:00
commit 6971d85d28

View file

@ -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);