Skip to content

Commit 2c63c15

Browse files
author
Andrew Valums
committed
Fixed bug in qq.UploadHandlerForm._cancel
1 parent efcc50f commit 2c63c15

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

client/fileuploader.js

+3-5
Original file line numberDiff line numberDiff line change
@@ -969,9 +969,9 @@ qq.extend(qq.UploadHandlerForm.prototype, {
969969
return this._inputs[id].value.replace(/.*(\/|\\)/, "");
970970
},
971971
_cancel: function(id){
972-
if (id in this._inputs){
973-
delete this._inputs[id];
974-
}
972+
this._options.onCancel(id, this.getName(id));
973+
974+
delete this._inputs[id];
975975

976976
var iframe = document.getElementById(id);
977977
if (iframe){
@@ -982,8 +982,6 @@ qq.extend(qq.UploadHandlerForm.prototype, {
982982

983983
qq.remove(iframe);
984984
}
985-
986-
this._options.onCancel(id, this.getName(id));
987985
},
988986
_upload: function(id, params){
989987
var input = this._inputs[id];

0 commit comments

Comments
 (0)