This is an automated email from the ASF dual-hosted git repository. aharui pushed a commit to branch develop in repository https://gitbox.apache.org/repos/asf/royale-asjs.git
commit 4127ce7a4e3af09b22970aa0ca77ee92523cd62b Author: Alex Harui <aha...@apache.org> AuthorDate: Tue Dec 4 14:45:21 2018 -0800 topMostEventDispatcher --- .../MXRoyale/src/main/royale/mx/core/UIComponent.as | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/core/UIComponent.as b/frameworks/projects/MXRoyale/src/main/royale/mx/core/UIComponent.as index 4721f4a..da268c4 100644 --- a/frameworks/projects/MXRoyale/src/main/royale/mx/core/UIComponent.as +++ b/frameworks/projects/MXRoyale/src/main/royale/mx/core/UIComponent.as @@ -1556,7 +1556,6 @@ public class UIComponent extends UIBase public function get systemManager():ISystemManager { // TODO - trace("systemManager not implemented"); return _systemManager; } @@ -1566,7 +1565,6 @@ public class UIComponent extends UIBase public function set systemManager(value:ISystemManager):void { // TODO - trace("systemManager not implemented"); _systemManager = value; } @@ -5384,6 +5382,22 @@ COMPILE::JS super.removeElement(c, dispatchEvent); childRemoved(c as IUIBase); } + + /** + * @copy org.apache.royale.core.IUIBase#topMostEventDispatcher + * + * @langversion 3.0 + * @playerversion Flash 10.2 + * @playerversion AIR 2.6 + * @productversion Royale 0.0 + * @royaleignorecoercion org.apache.royale.core.WrappedHTMLElement + * @royaleignorecoercion org.apache.royale.events.IEventDispatcher + */ + override public function get topMostEventDispatcher():IEventDispatcher + { + return FlexGlobals.topLevelApplication.parent as IEventDispatcher; + } + } }