You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by gr...@apache.org on 2019/11/11 20:04:25 UTC
[royale-asjs] branch develop updated: A quick fix for issue #552.
Match related logic in ViewDataBinding
This is an automated email from the ASF dual-hosted git repository.
gregdove pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git
The following commit(s) were added to refs/heads/develop by this push:
new f504c64 A quick fix for issue #552. Match related logic in ViewDataBinding
f504c64 is described below
commit f504c6400a86a2c447ec3fff31040d6675fb3096
Author: greg-dove <gr...@gmail.com>
AuthorDate: Tue Nov 12 09:04:06 2019 +1300
A quick fix for issue #552. Match related logic in ViewDataBinding
---
.../royale/org/apache/royale/binding/ContainerDataBinding.as | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
diff --git a/frameworks/projects/Binding/src/main/royale/org/apache/royale/binding/ContainerDataBinding.as b/frameworks/projects/Binding/src/main/royale/org/apache/royale/binding/ContainerDataBinding.as
index c234ae4..e3331c1 100644
--- a/frameworks/projects/Binding/src/main/royale/org/apache/royale/binding/ContainerDataBinding.as
+++ b/frameworks/projects/Binding/src/main/royale/org/apache/royale/binding/ContainerDataBinding.as
@@ -172,11 +172,19 @@ package org.apache.royale.binding
}
else if (fieldWatcher.eventNames is String)
{
- sb = new SimpleBinding();
+ var isStatic:Boolean = fieldWatcher.type == "static";
+ sb = new SimpleBinding(isStatic);
sb.destinationPropertyName = binding.destination[1];
sb.eventName = fieldWatcher.eventNames as String;
sb.sourcePropertyName = binding.source;
- sb.setDocument(_strand);
+ if (isStatic)
+ {
+ sb.setDocument(fieldWatcher.parentObj);
+ }
+ else
+ {
+ sb.setDocument(_strand);
+ }
prepareCreatedBinding(sb as IBinding, binding);
}