flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aha...@apache.org
Subject [06/16] git commit: [flex-asjs] [refs/heads/develop] - handle being a bead on a component as well as a view
Date Fri, 10 Oct 2014 14:34:53 GMT
handle being a bead on a component as well as a view


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

Branch: refs/heads/develop
Commit: c7f8a2dda1f37498b1c644248a22553bd21b6ae9
Parents: ec296c1
Author: Alex Harui <aharui@apache.org>
Authored: Thu Oct 9 14:24:41 2014 -0700
Committer: Alex Harui <aharui@apache.org>
Committed: Fri Oct 10 07:34:32 2014 -0700

----------------------------------------------------------------------
 .../org/apache/flex/html/beads/layouts/LayoutChangeNotifier.as  | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/c7f8a2dd/frameworks/as/projects/FlexJSJX/src/org/apache/flex/html/beads/layouts/LayoutChangeNotifier.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/FlexJSJX/src/org/apache/flex/html/beads/layouts/LayoutChangeNotifier.as
b/frameworks/as/projects/FlexJSJX/src/org/apache/flex/html/beads/layouts/LayoutChangeNotifier.as
index dd7eec8..acd6f92 100644
--- a/frameworks/as/projects/FlexJSJX/src/org/apache/flex/html/beads/layouts/LayoutChangeNotifier.as
+++ b/frameworks/as/projects/FlexJSJX/src/org/apache/flex/html/beads/layouts/LayoutChangeNotifier.as
@@ -77,7 +77,10 @@ package org.apache.flex.html.beads.layouts
 			if (_value !== value)
             {
                 _value = value;
-                IBeadView(_strand).host.dispatchEvent(new Event("layoutNeeded"));
+                if (_strand is IBeadView)
+                    IBeadView(_strand).host.dispatchEvent(new Event("layoutNeeded"));
+                else
+                    IEventDispatcher(_strand).dispatchEvent(new Event("layoutNeeded"));
             }
 		}
 		


Mime
View raw message