diff --git a/FileAPI.flash.swf b/FileAPI.flash.swf index 644adad2..dff831d7 100644 Binary files a/FileAPI.flash.swf and b/FileAPI.flash.swf differ diff --git a/flash/src/ru/mail/commands/LoadFileCommand.as b/flash/src/ru/mail/commands/LoadFileCommand.as index dfa6db1b..edaaa748 100644 --- a/flash/src/ru/mail/commands/LoadFileCommand.as +++ b/flash/src/ru/mail/commands/LoadFileCommand.as @@ -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 diff --git a/flash/src/ru/mail/commands/UploadFileCommand.as b/flash/src/ru/mail/commands/UploadFileCommand.as index 18ecf379..0d00e72d 100644 --- a/flash/src/ru/mail/commands/UploadFileCommand.as +++ b/flash/src/ru/mail/commands/UploadFileCommand.as @@ -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 diff --git a/flash/src/ru/mail/controller/AppController.as b/flash/src/ru/mail/controller/AppController.as index 06ce5038..ee6fadb2 100644 --- a/flash/src/ru/mail/controller/AppController.as +++ b/flash/src/ru/mail/controller/AppController.as @@ -648,7 +648,7 @@ package ru.mail.controller } _model.filesBuilder.removeFile(file); file = null; - + LoggerJS.log("abort complete"); } /** diff --git a/lib/FileAPI.Flash.js b/lib/FileAPI.Flash.js index efe890e3..3ed3b4d2 100644 --- a/lib/FileAPI.Flash.js +++ b/lib/FileAPI.Flash.js @@ -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; } };