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 <aha...@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;
     

Reply via email to