flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aha...@apache.org
Subject [09/12] git commit: [flex-asjs] [refs/heads/develop] - handle clientX get/set
Date Mon, 12 Jan 2015 18:51:01 GMT
handle clientX get/set


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

Branch: refs/heads/develop
Commit: 26e15fcc60ae8254d828faf15f706c6f2926d60d
Parents: ca57b86
Author: Alex Harui <aharui@apache.org>
Authored: Mon Jan 12 10:47:45 2015 -0800
Committer: Alex Harui <aharui@apache.org>
Committed: Mon Jan 12 10:47:45 2015 -0800

----------------------------------------------------------------------
 .../org/apache/flex/core/HTMLElementWrapper.js  | 44 ++++++++++++++++++++
 1 file changed, 44 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/26e15fcc/frameworks/js/FlexJS/src/org/apache/flex/core/HTMLElementWrapper.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/HTMLElementWrapper.js b/frameworks/js/FlexJS/src/org/apache/flex/core/HTMLElementWrapper.js
index be0426a..c863476 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/HTMLElementWrapper.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/HTMLElementWrapper.js
@@ -179,3 +179,47 @@ goog.events.BrowserEvent.prototype.get_screenX = function() {
 goog.events.BrowserEvent.prototype.get_screenY = function() {
   return this.screenY;
 };
+
+
+/**
+ * Hack to allow event.clientX expressions to work
+ *
+ * @expose
+ * @return {number} The wrapping object.
+ */
+goog.events.BrowserEvent.prototype.get_clientX = function() {
+  return this.clientX;
+};
+
+
+/**
+ * Hack to allow event.clientY expressions to work
+ *
+ * @expose
+ * @return {number} The wrapping object.
+ */
+goog.events.BrowserEvent.prototype.get_clientY = function() {
+  return this.clientY;
+};
+
+
+/**
+ * Hack to allow event.clientX expressions to work
+ *
+ * @expose
+ * @param {number} value The value.
+ */
+goog.events.BrowserEvent.prototype.set_clientX = function(value) {
+  this.clientX = value;
+};
+
+
+/**
+ * Hack to allow event.clientY expressions to work
+ *
+ * @expose
+ * @param {number} value The value.
+ */
+goog.events.BrowserEvent.prototype.set_clientY = function(value) {
+  this.clientY = value;
+};


Mime
View raw message