You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by ah...@apache.org on 2014/10/18 07:43:34 UTC
[17/30] git commit: [flex-asjs] [refs/heads/develop] - handle more
than just models
handle more than just models
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/b38c7037
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/b38c7037
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/b38c7037
Branch: refs/heads/develop
Commit: b38c7037e20f45004d4c78d3c8c70db6f1c0ea80
Parents: 6fb3c3f
Author: Alex Harui <ah...@apache.org>
Authored: Tue Oct 14 11:53:49 2014 -0700
Committer: Alex Harui <ah...@apache.org>
Committed: Fri Oct 17 22:38:45 2014 -0700
----------------------------------------------------------------------
.../src/org/apache/flex/core/MXMLBeadViewBaseDataBinding.as | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/b38c7037/frameworks/as/projects/FlexJSJX/src/org/apache/flex/core/MXMLBeadViewBaseDataBinding.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/FlexJSJX/src/org/apache/flex/core/MXMLBeadViewBaseDataBinding.as b/frameworks/as/projects/FlexJSJX/src/org/apache/flex/core/MXMLBeadViewBaseDataBinding.as
index 66213a1..248951a 100644
--- a/frameworks/as/projects/FlexJSJX/src/org/apache/flex/core/MXMLBeadViewBaseDataBinding.as
+++ b/frameworks/as/projects/FlexJSJX/src/org/apache/flex/core/MXMLBeadViewBaseDataBinding.as
@@ -97,14 +97,14 @@ package org.apache.flex.core
binding = bindings[i];
if (binding.source is Array)
{
- if (binding.source[0] == "model")
+ if (binding.source[0] in _strand)
{
if (binding.source.length == 2 && binding.destination.length == 2)
{
var destObject:Object;
var destination:IStrand;
// can be simplebinding or constantbinding
- var modelWatcher:Object = watchers.watcherMap["model"];
+ var modelWatcher:Object = watchers.watcherMap[binding.source[0]];
fieldWatcher = modelWatcher.children.watcherMap[binding.source[1]];
if (fieldWatcher.eventNames is String)
{