|
|
@ -56,7 +56,7 @@ |
|
|
|
del: document.removeEventListener ? |
|
|
|
del: document.removeEventListener ? |
|
|
|
function (node, name, callback) { |
|
|
|
function (node, name, callback) { |
|
|
|
node.removeEventListener(name, callback, false); |
|
|
|
node.removeEventListener(name, callback, false); |
|
|
|
|
|
|
|
|
|
|
|
return this; |
|
|
|
return this; |
|
|
|
} : |
|
|
|
} : |
|
|
|
function (node, name, callback) { |
|
|
|
function (node, name, callback) { |
|
|
@ -113,8 +113,8 @@ |
|
|
|
if (isFunction(handler.onerror)) { |
|
|
|
if (isFunction(handler.onerror)) { |
|
|
|
handler.onerror(); |
|
|
|
handler.onerror(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
for (var xhr = new XMLHttpRequest, |
|
|
|
for (var xhr = new XMLHttpRequest, |
|
|
|
upload = xhr.upload || { |
|
|
|
upload = xhr.upload || { |
|
|
@ -245,7 +245,7 @@ |
|
|
|
form.append("FileData", handler.file); |
|
|
|
form.append("FileData", handler.file); |
|
|
|
xhr.send(form); |
|
|
|
xhr.send(form); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
return handler; |
|
|
|
return handler; |
|
|
|
}; |
|
|
|
}; |
|
|
|
} else { |
|
|
|
} else { |
|
|
@ -298,7 +298,7 @@ |
|
|
|
handler.onload(rpe, { responseText: responseText }); |
|
|
|
handler.onload(rpe, { responseText: responseText }); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
try { // IE < 8 does not accept enctype attribute ...
|
|
|
|
try { // IE < 8 does not accept enctype attribute ...
|
|
|
|
var form = document.createElement("<form enctype=\"multipart/form-data\"></form>"), |
|
|
|
var form = document.createElement("<form enctype=\"multipart/form-data\"></form>"), |
|
|
|
iframe = handler.iframe || (handler.iframe = document.createElement("<iframe id=\"" + target + "\" name=\"" + target + "\" src=\"" + url + "\"></iframe>")); |
|
|
|
iframe = handler.iframe || (handler.iframe = document.createElement("<iframe id=\"" + target + "\" name=\"" + target + "\" src=\"" + url + "\"></iframe>")); |
|
|
@ -353,7 +353,7 @@ |
|
|
|
}; |
|
|
|
}; |
|
|
|
} |
|
|
|
} |
|
|
|
xhr = null; |
|
|
|
xhr = null; |
|
|
|
|
|
|
|
|
|
|
|
return sendFile; |
|
|
|
return sendFile; |
|
|
|
}(Object.prototype.toString)); |
|
|
|
}(Object.prototype.toString)); |
|
|
|
|
|
|
|
|
|
|
@ -705,7 +705,6 @@ |
|
|
|
|
|
|
|
|
|
|
|
reset: function () { |
|
|
|
reset: function () { |
|
|
|
if (this.wrap) { |
|
|
|
if (this.wrap) { |
|
|
|
this.wrap.files = []; |
|
|
|
|
|
|
|
this.wrap.attach_array = []; |
|
|
|
this.wrap.attach_array = []; |
|
|
|
this.wrap.attach_names = []; |
|
|
|
this.wrap.attach_names = []; |
|
|
|
this.wrap.attachNum = 0; |
|
|
|
this.wrap.attachNum = 0; |
|
|
|