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

[royale-asjs] 01/02: Proxy callProperty

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);