Skip to content

fix flash.abort #77

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Feb 21, 2013
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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