You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by gr...@apache.org on 2018/10/31 11:07:38 UTC
[royale-asjs] branch develop updated: Fix for a bug in release mode
(minimization rename on pako inflate method)
This is an automated email from the ASF dual-hosted git repository.
gregdove pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git
The following commit(s) were added to refs/heads/develop by this push:
new b464a39 Fix for a bug in release mode (minimization rename on pako inflate method)
b464a39 is described below
commit b464a39068c601f75c0adf9c784f8a0030dc5354
Author: greg-dove <gr...@gmail.com>
AuthorDate: Thu Nov 1 00:06:34 2018 +1300
Fix for a bug in release mode (minimization rename on pako inflate method)
---
.../main/royale/mx/rpc/remoting/CompressedRemoteObject.as | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/rpc/remoting/CompressedRemoteObject.as b/frameworks/projects/MXRoyale/src/main/royale/mx/rpc/remoting/CompressedRemoteObject.as
index 2097769..a9833bd 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/mx/rpc/remoting/CompressedRemoteObject.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/rpc/remoting/CompressedRemoteObject.as
@@ -28,7 +28,7 @@ package mx.rpc.remoting
import org.apache.royale.net.remoting.amf.AMFBinaryData;
import org.apache.royale.reflection.getQualifiedClassName;
-
+
/**
* A RemoteObject that performs automatic serialization/deserialization of results.
*
@@ -114,7 +114,7 @@ package mx.rpc.remoting
included = true;
break;
}
- }
+ }
}
if (!included && includeClasses && includeClasses.length > 0) {
included = includeClasses.indexOf(parameterClassName) != -1;
@@ -141,7 +141,7 @@ package mx.rpc.remoting
return parameters;
}
- private function deserializeResult(result:*, operation:AbstractOperation):* // NO PMD
+ private function deserializeResult(result:*, operation:AbstractOperation):* // NO PMD
{
COMPILE::SWF{
if (result is ByteArray) {
@@ -160,11 +160,11 @@ package mx.rpc.remoting
// --- Transform the number array into a bytearray
var bytearray:Uint8Array = new Uint8Array(result);
// --- uncompress the bytearray to get the real object (tree) and create the AMFBinaryData with it
- var data:AMFBinaryData = new AMFBinaryData(window["pako"].inflate(bytearray));
+ var data:AMFBinaryData = new AMFBinaryData(window["pako"]["inflate"](bytearray));
// --- store the inflated data object in result
result = data.readObject();
return result;
- }
+ }
else
{
return result;
@@ -172,4 +172,4 @@ package mx.rpc.remoting
}
}
}
-}
\ No newline at end of file
+}