fix onunload typo

This commit is contained in:
Leo Horie 2016-01-28 18:30:14 -05:00
parent 6b7ac83dde
commit baa55cd262

View file

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