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:44 UTC

[royale-asjs] branch develop updated (602a73e -> 9e5a79c)

This is an automated email from the ASF dual-hosted git repository.

aharui pushed a change to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git.


    from 602a73e  test for Flex resources
     new 25f29cb  Proxy callProperty
     new 9e5a79c  JS support for calling operations as functions

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .../projects/Core/src/main/royale/org/apache/royale/utils/Proxy.as  | 5 +++++
 .../projects/MXRoyale/src/main/royale/mx/rpc/AbstractService.as     | 6 ++++++
 2 files changed, 11 insertions(+)


[royale-asjs] 02/02: JS support for calling operations as functions

Posted by ah...@apache.org.
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;
     


[royale-asjs] 01/02: Proxy callProperty

Posted by ah...@apache.org.
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 25f29cb1c238fbc0c75745c5d42aaef8599ce054
Author: Alex Harui <ah...@apache.org>
AuthorDate: Sun Oct 14 21:34:11 2018 -0700

    Proxy callProperty
---
 .../projects/Core/src/main/royale/org/apache/royale/utils/Proxy.as   | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/frameworks/projects/Core/src/main/royale/org/apache/royale/utils/Proxy.as b/frameworks/projects/Core/src/main/royale/org/apache/royale/utils/Proxy.as
index e3358ba..5293e65 100644
--- a/frameworks/projects/Core/src/main/royale/org/apache/royale/utils/Proxy.as
+++ b/frameworks/projects/Core/src/main/royale/org/apache/royale/utils/Proxy.as
@@ -130,6 +130,11 @@ public dynamic class Proxy extends EventDispatcher
         valueMap[propName] = value;
     }
     
+    public function callProperty(propName:*, ... args:Array):*
+    {
+        return valueMap[propName].apply(this, args);
+    }
+    
     public function hasProperty(propName:String):Boolean
     {
 		return valueMap.hasOwnProperty(propName);