Skip to content

Commit 772f7ca

Browse files
committed
Merge pull request #77 from im-saxo/master
* fix flash.abort
2 parents 7cecec4 + b595ab8 commit 772f7ca

File tree

5 files changed

+2
-7
lines changed

5 files changed

+2
-7
lines changed

FileAPI.flash.swf

-53 Bytes
Binary file not shown.

flash/src/ru/mail/commands/LoadFileCommand.as

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,6 @@ package ru.mail.commands
7777
fileRef.removeEventListener( Event.COMPLETE, onLoadComplete);
7878
fileRef.removeEventListener( IOErrorEvent.IO_ERROR, onLoadError );
7979
fileRef.removeEventListener(ProgressEvent.PROGRESS, onProgress);
80-
81-
fileRef = null;
82-
file = null;
8380
}
8481

8582
private function onLoadError(event:IOErrorEvent):void

flash/src/ru/mail/commands/UploadFileCommand.as

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,6 @@ package ru.mail.commands
3838
fileRef.removeEventListener(IOErrorEvent.IO_ERROR, onError);
3939
fileRef.removeEventListener(SecurityErrorEvent.SECURITY_ERROR, onError);
4040
fileRef.removeEventListener(ProgressEvent.PROGRESS, onProgress);
41-
42-
fileRef = null;
4341
}
4442

4543
override public function execute():void

flash/src/ru/mail/controller/AppController.as

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -648,7 +648,7 @@ package ru.mail.controller
648648
}
649649
_model.filesBuilder.removeFile(file);
650650
file = null;
651-
651+
LoggerJS.log("abort complete");
652652
}
653653

654654
/**

lib/FileAPI.Flash.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@
436436

437437
_this.xhr = {
438438
headers: {},
439-
abort: function (){ flash.cmd(flashId, 'abort', fileId); },
439+
abort: function (){ flash.cmd(flashId, 'abort', { id: fileId }); },
440440
getResponseHeader: function (name){ return this.headers[name]; },
441441
getAllResponseHeaders: function (){ return this.headers; }
442442
};

0 commit comments

Comments
 (0)