|
|
@ -116,8 +116,7 @@ |
|
|
|
|
|
|
|
|
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
for (var |
|
|
|
for (var xhr = new XMLHttpRequest, |
|
|
|
xhr = new XMLHttpRequest, |
|
|
|
|
|
|
|
upload = xhr.upload || { |
|
|
|
upload = xhr.upload || { |
|
|
|
addEventListener: function (event, callback) { |
|
|
|
addEventListener: function (event, callback) { |
|
|
|
this["on" + event] = callback; |
|
|
|
this["on" + event] = callback; |
|
|
@ -129,6 +128,7 @@ |
|
|
|
) { |
|
|
|
) { |
|
|
|
upload.addEventListener( |
|
|
|
upload.addEventListener( |
|
|
|
split[i].substring(2), |
|
|
|
split[i].substring(2), |
|
|
|
|
|
|
|
// eslint-disable-next-line no-loop-func
|
|
|
|
(function (event) { |
|
|
|
(function (event) { |
|
|
|
return function (rpe) { |
|
|
|
return function (rpe) { |
|
|
|
if (isFunction(handler[event])) { |
|
|
|
if (isFunction(handler[event])) { |
|
|
|