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/09/25 18:03:54 UTC
[12/50] git commit: [flex-asjs] [refs/heads/develop] - allow override
of destination in ConstantBinding as well
allow override of destination in ConstantBinding as well
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/28270395
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/28270395
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/28270395
Branch: refs/heads/develop
Commit: 28270395dfd6d3c914272dc94eb5637da07e76f5
Parents: 5b6365c
Author: Alex Harui <ah...@apache.org>
Authored: Tue Sep 16 23:19:53 2014 -0700
Committer: Alex Harui <ah...@apache.org>
Committed: Tue Sep 23 14:49:45 2014 -0700
----------------------------------------------------------------------
.../FlexJSUI/src/org/apache/flex/binding/ConstantBinding.as | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/28270395/frameworks/as/projects/FlexJSUI/src/org/apache/flex/binding/ConstantBinding.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/FlexJSUI/src/org/apache/flex/binding/ConstantBinding.as b/frameworks/as/projects/FlexJSUI/src/org/apache/flex/binding/ConstantBinding.as
index efbf89f..ab8cca7 100644
--- a/frameworks/as/projects/FlexJSUI/src/org/apache/flex/binding/ConstantBinding.as
+++ b/frameworks/as/projects/FlexJSUI/src/org/apache/flex/binding/ConstantBinding.as
@@ -81,7 +81,7 @@ package org.apache.flex.binding
* @playerversion AIR 2.6
* @productversion FlexJS 0.0
*/
- protected var destination:Object;
+ public var destination:Object;
/**
* If not null, the id of the mxml tag who's property
@@ -126,7 +126,9 @@ package org.apache.flex.binding
*/
public function set strand(value:IStrand):void
{
- destination = value;
+ if (destination == null)
+ destination = value;
+
source = document[sourceID];
destination[destinationPropertyName] = source[sourcePropertyName];
}