From a3410b8f3e28f52e9b63d63601b0ba5aaa6d510a Mon Sep 17 00:00:00 2001 From: Christian Natis Date: Thu, 12 Nov 2015 10:56:46 -0500 Subject: [PATCH] Fixed syntax error in example --- docs/mithril.component.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/mithril.component.md b/docs/mithril.component.md index b3948a36..c89df6df 100644 --- a/docs/mithril.component.md +++ b/docs/mithril.component.md @@ -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);