flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aha...@apache.org
Subject [2/2] git commit: [flex-asjs] [refs/heads/develop] - add get_target() because codegen doesn't know that org.apache.flex.events.Event is wrapping goog.events.Event which has target as a property instead of a getter
Date Sun, 05 May 2013 06:16:52 GMT
add get_target() because codegen doesn't know that org.apache.flex.events.Event is wrapping
goog.events.Event which has target as a property instead of a getter


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

Branch: refs/heads/develop
Commit: 01b9aae25d38c4749514d92b92f0b49de637594c
Parents: ca11713
Author: Alex Harui <aharui@apache.org>
Authored: Sat May 4 23:16:35 2013 -0700
Committer: Alex Harui <aharui@apache.org>
Committed: Sat May 4 23:16:35 2013 -0700

----------------------------------------------------------------------
 .../js/FlexJS/src/org/apache/flex/events/Event.js  |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/01b9aae2/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 51752cc..2c7900f 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/events/Event.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/events/Event.js
@@ -41,6 +41,14 @@ org.apache.flex.events.Event.prototype.init = function(type) {
   this.type = type;
 };
 
+/**
+ * @expose
+ * @this {org.apache.flex.events.Event}
+ * @return {Object} The event target.
+ */
+org.apache.flex.events.Event.prototype.get_target = function() {
+  return this.target;
+};
 
 /**
  * @expose


Mime
View raw message