Skip to content

Commit

Permalink
Merge pull request #77 from im-saxo/master
Browse files Browse the repository at this point in the history
* fix flash.abort
  • Loading branch information
RubaXa committed Feb 21, 2013
2 parents 7cecec4 + b595ab8 commit 772f7ca
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 7 deletions.
Binary file modified FileAPI.flash.swf
Binary file not shown.
3 changes: 0 additions & 3 deletions flash/src/ru/mail/commands/LoadFileCommand.as
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,6 @@ package ru.mail.commands
fileRef.removeEventListener( Event.COMPLETE, onLoadComplete);
fileRef.removeEventListener( IOErrorEvent.IO_ERROR, onLoadError );
fileRef.removeEventListener(ProgressEvent.PROGRESS, onProgress);

fileRef = null;
file = null;
}

private function onLoadError(event:IOErrorEvent):void
Expand Down
2 changes: 0 additions & 2 deletions flash/src/ru/mail/commands/UploadFileCommand.as
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,6 @@ package ru.mail.commands
fileRef.removeEventListener(IOErrorEvent.IO_ERROR, onError);
fileRef.removeEventListener(SecurityErrorEvent.SECURITY_ERROR, onError);
fileRef.removeEventListener(ProgressEvent.PROGRESS, onProgress);

fileRef = null;
}

override public function execute():void
Expand Down
2 changes: 1 addition & 1 deletion flash/src/ru/mail/controller/AppController.as
Original file line number Diff line number Diff line change
Expand Up @@ -648,7 +648,7 @@ package ru.mail.controller
}
_model.filesBuilder.removeFile(file);
file = null;

LoggerJS.log("abort complete");
}

/**
Expand Down
2 changes: 1 addition & 1 deletion lib/FileAPI.Flash.js
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@

_this.xhr = {
headers: {},
abort: function (){ flash.cmd(flashId, 'abort', fileId); },
abort: function (){ flash.cmd(flashId, 'abort', { id: fileId }); },
getResponseHeader: function (name){ return this.headers[name]; },
getAllResponseHeaders: function (){ return this.headers; }
};
Expand Down

0 comments on commit 772f7ca

Please sign in to comment.