Fixed syntax error in example

This commit is contained in:
Christian Natis 2015-11-12 10:56:46 -05:00
parent e62eaed0fd
commit a3410b8f3e

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