flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From p...@apache.org
Subject git commit: [flex-asjs] [refs/heads/develop] - If Apache Flex event type is on the list of element events, convert to DOM event.
Date Tue, 08 Sep 2015 18:34:40 GMT
Repository: flex-asjs
Updated Branches:
  refs/heads/develop 0dfd3deac -> 9eade69f0


If Apache Flex event type is on the list of element events, convert to DOM event.


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

Branch: refs/heads/develop
Commit: 9eade69f055105c70dba052d4dbd6ccef24e876f
Parents: 0dfd3de
Author: Peter Ent <pent@apache.org>
Authored: Tue Sep 8 14:34:34 2015 -0400
Committer: Peter Ent <pent@apache.org>
Committed: Tue Sep 8 14:34:34 2015 -0400

----------------------------------------------------------------------
 .../Core/js/src/org/apache/flex/events/EventDispatcher.js      | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/9eade69f/frameworks/projects/Core/js/src/org/apache/flex/events/EventDispatcher.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/js/src/org/apache/flex/events/EventDispatcher.js b/frameworks/projects/Core/js/src/org/apache/flex/events/EventDispatcher.js
index a7a9261..0429dbd 100644
--- a/frameworks/projects/Core/js/src/org/apache/flex/events/EventDispatcher.js
+++ b/frameworks/projects/Core/js/src/org/apache/flex/events/EventDispatcher.js
@@ -81,8 +81,12 @@ org.apache.flex.events.EventDispatcher.prototype.dispatchEvent = function(e)
{
     if (e === 'change')
       e = new Event(e);
   }
-  else
+  else {
     t = e.type;
+    if (org.apache.flex.events.ElementEvents.elementEvents[t]) {
+        e = new Event(t);
+    }
+  }
   var source = this.getActualDispatcher_(t);
   if (source == this)
     return org.apache.flex.events.EventDispatcher.base(this, 'dispatchEvent', e);


Mime
View raw message