ops
This commit is contained in:
parent
d020d7f4b9
commit
f2a3cd08b2
1 changed files with 1 additions and 1 deletions
|
|
@ -812,7 +812,6 @@ Mithril = m = new function app(window, undefined) {
|
||||||
var script = window.document.createElement("script")
|
var script = window.document.createElement("script")
|
||||||
|
|
||||||
window[callbackKey] = function(resp){
|
window[callbackKey] = function(resp){
|
||||||
window[callbackKey] = undefined
|
|
||||||
window.document.body.removeChild(script)
|
window.document.body.removeChild(script)
|
||||||
options.onload({
|
options.onload({
|
||||||
type: "load",
|
type: "load",
|
||||||
|
|
@ -820,6 +819,7 @@ Mithril = m = new function app(window, undefined) {
|
||||||
responseText: resp
|
responseText: resp
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
delete window[callbackKey]
|
||||||
}
|
}
|
||||||
|
|
||||||
script.onerror = function(e) {
|
script.onerror = function(e) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue