You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by ah...@apache.org on 2018/10/15 04:38:46 UTC
[royale-asjs] 02/02: JS support for calling operations as functions
This is an automated email from the ASF dual-hosted git repository.
aharui pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git
commit 9e5a79c338481f285e10d1ce048dba85740221b1
Author: Alex Harui <ah...@apache.org>
AuthorDate: Sun Oct 14 21:37:48 2018 -0700
JS support for calling operations as functions
---
.../projects/MXRoyale/src/main/royale/mx/rpc/AbstractService.as | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/rpc/AbstractService.as b/frameworks/projects/MXRoyale/src/main/royale/mx/rpc/AbstractService.as
index 6227ebf..5898df6 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/mx/rpc/AbstractService.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/rpc/AbstractService.as
@@ -485,6 +485,12 @@ public dynamic class AbstractService extends Proxy implements IEventDispatcher
return getOperation(getLocalName(name)).send.apply(null, args);
}
+ COMPILE::JS
+ override public function callProperty(name:*, ... args:Array):*
+ {
+ return getOperation(getLocalName(name)).send.apply(null, args);
+ }
+
//used to store the nextName values
private var nextNameArray:Array;