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 de21426ab47d8772b61cb0843bc0977a73d546de
Author: Alex Harui <[email protected]>
AuthorDate: Sun Mar 1 19:29:52 2020 -0800

    handle case where destination array starts with 'this'
---
 .../Binding/src/main/royale/org/apache/royale/binding/GenericBinding.as | 2 ++
 1 file changed, 2 insertions(+)

diff --git 
a/frameworks/projects/Binding/src/main/royale/org/apache/royale/binding/GenericBinding.as
 
b/frameworks/projects/Binding/src/main/royale/org/apache/royale/binding/GenericBinding.as
index 42f354a..e75d7ed 100644
--- 
a/frameworks/projects/Binding/src/main/royale/org/apache/royale/binding/GenericBinding.as
+++ 
b/frameworks/projects/Binding/src/main/royale/org/apache/royale/binding/GenericBinding.as
@@ -202,6 +202,8 @@ package org.apache.royale.binding
                 var arr:Array = destinationData as Array;
                 var n:int = arr.length;
                 var obj:Object = document[arr[0]];
+                               if (obj == null && arr[0] == 'this')
+                                       obj = document;
                 if (obj == null)
                 {
                     if (!_listening) {

Reply via email to