Skip to content

Commit

Permalink
Fixed bug in qq.UploadHandlerForm._cancel
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Valums committed Sep 8, 2010
1 parent efcc50f commit 2c63c15
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions client/fileuploader.js
Expand Up @@ -969,9 +969,9 @@ qq.extend(qq.UploadHandlerForm.prototype, {
return this._inputs[id].value.replace(/.*(\/|\\)/, "");
},
_cancel: function(id){
if (id in this._inputs){
delete this._inputs[id];
}
this._options.onCancel(id, this.getName(id));

delete this._inputs[id];

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

qq.remove(iframe);
}

this._options.onCancel(id, this.getName(id));
},
_upload: function(id, params){
var input = this._inputs[id];
Expand Down

0 comments on commit 2c63c15

Please sign in to comment.