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

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

commit 0d70b472368fcfd516cf2f18224107e6eec0bdf6
Author: Alex Harui <[email protected]>
AuthorDate: Thu Oct 3 14:12:51 2019 -0700

    handle proxy in  PropertyWatcher
---
 .../royale/org/apache/royale/binding/PropertyWatcher.as    | 14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)

diff --git 
a/frameworks/projects/Binding/src/main/royale/org/apache/royale/binding/PropertyWatcher.as
 
b/frameworks/projects/Binding/src/main/royale/org/apache/royale/binding/PropertyWatcher.as
index fe68ed3..65b95a2 100644
--- 
a/frameworks/projects/Binding/src/main/royale/org/apache/royale/binding/PropertyWatcher.as
+++ 
b/frameworks/projects/Binding/src/main/royale/org/apache/royale/binding/PropertyWatcher.as
@@ -244,7 +244,19 @@ package org.apache.royale.binding
                     }
                     else
                     {
-                        value = source[propertyName];
+                        COMPILE::JS
+                        {
+                            // someday have Proxy swap out PropertyWatcher?
+                            if (typeof source["getProperty"] === "function")
+                                value = source["getProperty"](propertyName);
+                            else
+                                value = source[propertyName];
+                            
+                        }
+                        COMPILE::SWF
+                        {
+                            value = source[propertyName];
+                        }
                     }
                 }
             }

Reply via email to