You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by ha...@apache.org on 2019/12/24 08:02:37 UTC
[royale-asjs] 03/03: Enable bubbling for Royale EventDispatchers
This is an automated email from the ASF dual-hosted git repository.
harbs pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git
commit 6797f7ff0d51a976862ae80e922e6029d1579c08
Author: Harbs <ha...@in-tools.com>
AuthorDate: Tue Dec 24 10:02:19 2019 +0200
Enable bubbling for Royale EventDispatchers
---
.../main/royale/org/apache/royale/events/EventDispatcher.as | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
diff --git a/frameworks/projects/Core/src/main/royale/org/apache/royale/events/EventDispatcher.as b/frameworks/projects/Core/src/main/royale/org/apache/royale/events/EventDispatcher.as
index b981c4e..b57f934 100644
--- a/frameworks/projects/Core/src/main/royale/org/apache/royale/events/EventDispatcher.as
+++ b/frameworks/projects/Core/src/main/royale/org/apache/royale/events/EventDispatcher.as
@@ -20,14 +20,15 @@ package org.apache.royale.events
{
COMPILE::JS
{
- import goog.events;
+ import goog.events;
import goog.events.EventTarget;
+ import org.apache.royale.core.IChild;
}
COMPILE::SWF
{
import flash.events.EventDispatcher;
- import flash.events.IEventDispatcher;
+ import flash.events.IEventDispatcher;
}
/**
@@ -99,6 +100,13 @@ package org.apache.royale.events
}
return false;
}
+ /**
+ * @royaleignorecoercion org.apache.royale.core.IChild
+ * @royaleignorecoercion goog.events.EventTarget
+ */
+ override public function getParentEventTarget():goog.events.EventTarget{
+ return (this as IChild).parent as goog.events.EventTarget;
+ }
public function toString():String
{