From cde0e348a48ae2c58f3318f213184d42f84577b1 Mon Sep 17 00:00:00 2001 From: Lei Yang Date: Wed, 3 Aug 2016 19:31:36 +0800 Subject: [PATCH] fix potential overwriting of onunload.$old --- mithril.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mithril.js b/mithril.js index f45bc0c3..88d53f52 100644 --- a/mithril.js +++ b/mithril.js @@ -419,7 +419,7 @@ if (pendingRequests && controller.onunload) { var onunload = controller.onunload - controller.onunload = noop + controller.onunload = function (){} controller.onunload.$old = onunload } })