You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by ha...@apache.org on 2016/11/29 10:25:08 UTC
git commit: [flex-asjs] [refs/heads/develop] - BinaryData should take
untyped Objects
Repository: flex-asjs
Updated Branches:
refs/heads/develop bba0be9d1 -> fb3b7e9bb
BinaryData should take untyped Objects
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/fb3b7e9b
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/fb3b7e9b
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/fb3b7e9b
Branch: refs/heads/develop
Commit: fb3b7e9bb6f07255244fbfbdf2d00e39f89bfe6b
Parents: bba0be9
Author: Harbs <ha...@in-tools.com>
Authored: Tue Nov 29 12:25:03 2016 +0200
Committer: Harbs <ha...@in-tools.com>
Committed: Tue Nov 29 12:25:03 2016 +0200
----------------------------------------------------------------------
.../src/main/flex/org/apache/flex/utils/BinaryData.as | 11 +++++++----
1 file changed, 7 insertions(+), 4 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/fb3b7e9b/frameworks/projects/Core/src/main/flex/org/apache/flex/utils/BinaryData.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/src/main/flex/org/apache/flex/utils/BinaryData.as b/frameworks/projects/Core/src/main/flex/org/apache/flex/utils/BinaryData.as
index 2a16e0a..4516f85 100644
--- a/frameworks/projects/Core/src/main/flex/org/apache/flex/utils/BinaryData.as
+++ b/frameworks/projects/Core/src/main/flex/org/apache/flex/utils/BinaryData.as
@@ -47,15 +47,18 @@ public class BinaryData implements IBinaryDataInput, IBinaryDataOutput
* @productversion FlexJS 0.0
*/
COMPILE::SWF
- public function BinaryData(bytes:ByteArray = null)
+ public function BinaryData(bytes:Object = null)
{
- ba = bytes ? bytes : new ByteArray();
+ ba = bytes ? bytes as ByteArray : new ByteArray();
}
+ /**
+ * @flexjsignorecoercion ArrayBuffer
+ */
COMPILE::JS
- public function BinaryData(bytes:ArrayBuffer = null)
+ public function BinaryData(bytes:Object = null)
{
- ba = bytes ? bytes : new ArrayBuffer(0);
+ ba = bytes ? bytes as ArrayBuffer : new ArrayBuffer(0);
_len = ba.byteLength;
}