From baa55cd26224686230d02e1e3cc6cf676d5eb2ee Mon Sep 17 00:00:00 2001 From: Leo Horie Date: Thu, 28 Jan 2016 18:30:14 -0500 Subject: [PATCH] fix onunload typo --- mithril.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mithril.js b/mithril.js index f92faa45..5ac1ca34 100644 --- a/mithril.js +++ b/mithril.js @@ -229,7 +229,7 @@ var m = (function app(window, undefined) { if (cached.configContext && isFunction(cached.configContext.onunload)) cached.configContext.onunload(); if (cached.controllers) { forEach(cached.controllers, function (controller) { - if (controller.unload) controller.onunload({preventDefault: noop}); + if (controller.onunload) controller.onunload({preventDefault: noop}); }); } }