From f2a3cd08b269678a51cef49cdfb88eb61b5e055e Mon Sep 17 00:00:00 2001 From: Leo Horie Date: Wed, 8 Oct 2014 09:34:53 -0400 Subject: [PATCH] ops --- mithril.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mithril.js b/mithril.js index c0629133..5a4eb7ae 100644 --- a/mithril.js +++ b/mithril.js @@ -812,7 +812,6 @@ Mithril = m = new function app(window, undefined) { var script = window.document.createElement("script") window[callbackKey] = function(resp){ - window[callbackKey] = undefined window.document.body.removeChild(script) options.onload({ type: "load", @@ -820,6 +819,7 @@ Mithril = m = new function app(window, undefined) { responseText: resp } }) + delete window[callbackKey] } script.onerror = function(e) {