This commit is contained in:
Leo Horie 2014-10-08 09:34:53 -04:00
parent d020d7f4b9
commit f2a3cd08b2

View file

@ -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) {