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] - Added get_type() to Event.js so cross-compiled code will work: In ActionScript, event.type is cross-compiled to event.get_type().
Date Mon, 02 Jun 2014 13:21:01 GMT
Repository: flex-asjs
Updated Branches:
  refs/heads/develop 9ac6c9812 -> 30caa1b71


Added get_type() to Event.js so cross-compiled code will work: In ActionScript, event.type
is cross-compiled to event.get_type().


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

Branch: refs/heads/develop
Commit: 30caa1b71f3f7da068b2f5a506fbb7506a210fc4
Parents: 9ac6c98
Author: Peter Ent <pent@apache.org>
Authored: Mon Jun 2 09:20:58 2014 -0400
Committer: Peter Ent <pent@apache.org>
Committed: Mon Jun 2 09:20:58 2014 -0400

----------------------------------------------------------------------
 frameworks/js/FlexJS/src/org/apache/flex/events/Event.js | 9 +++++++++
 1 file changed, 9 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/30caa1b7/frameworks/js/FlexJS/src/org/apache/flex/events/Event.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/events/Event.js b/frameworks/js/FlexJS/src/org/apache/flex/events/Event.js
index ab36ffc..a73ba8f 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/events/Event.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/events/Event.js
@@ -73,6 +73,15 @@ org.apache.flex.events.Event.prototype.init = function(type) {
 
 /**
  * @expose
+ * @return {string} The event type.
+ */
+org.apache.flex.events.Event.prototype.get_type = function() {
+  return this.type;
+};
+
+
+/**
+ * @expose
  * @return {Object|undefined} The event target.
  */
 org.apache.flex.events.Event.prototype.get_target = function() {


Mime
View raw message