Merge branch 'next' of https://github.com/lhorie/mithril.js into prop-fix

This commit is contained in:
impinball 2015-12-14 06:42:34 -05:00
commit 70d2734a58

View file

@ -735,12 +735,12 @@ void (function (global, factory) { // eslint-disable-line
var idx = controllers.push(controller) - 1
unloaders[idx] = {
controller: controller,
handler: function () {
handler: function (ev) {
controllers.splice(controllers.indexOf(controller), 1)
views.splice(views.indexOf(view), 1)
var unload = controller && controller.onunload
if (type.call(unload) === "[object Function]") {
controller.onunload()
controller.onunload(ev)
}
}
}