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/10 16:34:53 UTC
[06/16] git commit: [flex-asjs] [refs/heads/develop] - handle being a
bead on a component as well as a view
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 <ah...@apache.org>
Authored: Thu Oct 9 14:24:41 2014 -0700
Committer: Alex Harui <ah...@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"));
}
}