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 2015/01/23 21:24:17 UTC

[07/14] git commit: [flex-asjs] [refs/heads/develop] - fix generic databinding

fix generic databinding


Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/7df60521
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/7df60521
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/7df60521

Branch: refs/heads/develop
Commit: 7df60521d537e9d9d17f02208738e0723b6f87cc
Parents: 207359d
Author: Alex Harui <ah...@apache.org>
Authored: Thu Jan 15 16:17:47 2015 -0800
Committer: Alex Harui <ah...@apache.org>
Committed: Fri Jan 23 12:24:04 2015 -0800

----------------------------------------------------------------------
 .../FlexJSUI/src/org/apache/flex/binding/PropertyWatcher.as   | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7df60521/frameworks/as/projects/FlexJSUI/src/org/apache/flex/binding/PropertyWatcher.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/FlexJSUI/src/org/apache/flex/binding/PropertyWatcher.as b/frameworks/as/projects/FlexJSUI/src/org/apache/flex/binding/PropertyWatcher.as
index bb8ee4e..9f73139 100644
--- a/frameworks/as/projects/FlexJSUI/src/org/apache/flex/binding/PropertyWatcher.as
+++ b/frameworks/as/projects/FlexJSUI/src/org/apache/flex/binding/PropertyWatcher.as
@@ -142,13 +142,18 @@ package org.apache.flex.binding
             if (source && source is IEventDispatcher)
                 removeEventListeners();
 
-            source = parent;
+            if (source is PropertyWatcher)
+                source = PropertyWatcher(parent).value;
+            else
+                source = parent;
             
             if (source && source is IEventDispatcher)
                 addEventListeners();
             
             // Now get our property.
             wrapUpdate(updateProperty);
+            
+            notifyListeners();            
         }
 
         private function addEventListeners():void