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


The following commit(s) were added to refs/heads/develop by this push:
     new 61c4f42  A parent might not be an EventDispatcher. Use emit to check 
the type.
61c4f42 is described below

commit 61c4f42030c022585a7400b7bd90e73b286b1a97
Author: Harbs <[email protected]>
AuthorDate: Tue Dec 24 10:35:55 2019 +0200

    A parent might not be an EventDispatcher. Use emit to check the type.
---
 .../Core/src/main/royale/org/apache/royale/events/EventDispatcher.as  | 4 ++--
 1 file changed, 2 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 b57f934..fd27682 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
@@ -102,10 +102,10 @@ package org.apache.royale.events
                }
                /**
                 * @royaleignorecoercion org.apache.royale.core.IChild
-                * @royaleignorecoercion goog.events.EventTarget
+                * @royaleemitcoercion org.apache.royale.events.EventDispatcher
                 */
                override public function 
getParentEventTarget():goog.events.EventTarget{
-                       return (this as IChild).parent as 
goog.events.EventTarget;
+                       return (this as IChild).parent as EventDispatcher;
                }
 
                public function toString():String

Reply via email to