for some reason, we weren't handling 'this'
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/61fc278f Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/61fc278f Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/61fc278f Branch: refs/heads/develop Commit: 61fc278f86ba5009cda21833a76a87aec1e0b511 Parents: 1a5ba33 Author: Alex Harui <[email protected]> Authored: Wed Apr 8 12:12:11 2015 -0700 Committer: Alex Harui <[email protected]> Committed: Wed Apr 8 12:12:11 2015 -0700 ---------------------------------------------------------------------- .../FlexJSJX/src/org/apache/flex/core/ContainerDataBinding.as | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/61fc278f/frameworks/as/projects/FlexJSJX/src/org/apache/flex/core/ContainerDataBinding.as ---------------------------------------------------------------------- diff --git a/frameworks/as/projects/FlexJSJX/src/org/apache/flex/core/ContainerDataBinding.as b/frameworks/as/projects/FlexJSJX/src/org/apache/flex/core/ContainerDataBinding.as index 72161a6..95fada8 100644 --- a/frameworks/as/projects/FlexJSJX/src/org/apache/flex/core/ContainerDataBinding.as +++ b/frameworks/as/projects/FlexJSJX/src/org/apache/flex/core/ContainerDataBinding.as @@ -183,7 +183,10 @@ package org.apache.flex.core cb.destinationPropertyName = binding.destination[1]; cb.sourcePropertyName = binding.source; cb.setDocument(_strand); - destObject = _strand[binding.destination[0]]; + if (binding.destination[0] == "this") + destObject = _strand; + else + destObject = _strand[binding.destination[0]]; destination = destObject as IStrand; if (destination) destination.addBead(cb);
