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