I guess these aren't getter/setter in Flash
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/f14ea0a8 Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/f14ea0a8 Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/f14ea0a8 Branch: refs/heads/develop Commit: f14ea0a8747c660307a8bb6ade13868a416de1e2 Parents: 7550836 Author: Alex Harui <aha...@apache.org> Authored: Fri Nov 14 08:11:03 2014 -0800 Committer: Alex Harui <aha...@apache.org> Committed: Fri Nov 14 22:29:52 2014 -0800 ---------------------------------------------------------------------- .../js/FlexJS/src/org/apache/flex/geom/Point.js | 44 +--------- .../src/org/apache/flex/geom/Rectangle.js | 90 ++------------------ 2 files changed, 12 insertions(+), 122 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/f14ea0a8/frameworks/js/FlexJS/src/org/apache/flex/geom/Point.js ---------------------------------------------------------------------- diff --git a/frameworks/js/FlexJS/src/org/apache/flex/geom/Point.js b/frameworks/js/FlexJS/src/org/apache/flex/geom/Point.js index febb4dd..aba6db8 100644 --- a/frameworks/js/FlexJS/src/org/apache/flex/geom/Point.js +++ b/frameworks/js/FlexJS/src/org/apache/flex/geom/Point.js @@ -23,16 +23,8 @@ goog.provide('org.apache.flex.geom.Point'); */ org.apache.flex.geom.Point = function(x, y) { - /** - * @protected - * @type {number} - */ this.x = x; - /** - * @protected - * @type {number} - */ this.y = y; }; @@ -51,42 +43,14 @@ org.apache.flex.geom.Point.prototype.FLEXJS_CLASS_INFO = /** * @expose * The x coordinate. - * @return {number} value The x coordinate. + * @type {number} value The x coordinate. */ -org.apache.flex.geom.Point.prototype.get_x = - function() { - return this.x; -}; - - -/** - * @expose - * The x coordinate. - * @param {number} value The x coordinate. - */ -org.apache.flex.geom.Point.prototype.set_x = - function(value) { - this.x = value; -}; +org.apache.flex.geom.Point.prototype.x = 0; /** * @expose * The y coordinate. - * @return {number} value The y coordinate. + * @type {number} value The y coordinate. */ -org.apache.flex.geom.Point.prototype.get_y = - function() { - return this.y; -}; - - -/** - * @expose - * The y coordinate. - * @param {number} value The y coordinate. - */ -org.apache.flex.geom.Point.prototype.set_y = - function(value) { - this.y = value; -}; +org.apache.flex.geom.Point.prototype.y = 0; http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/f14ea0a8/frameworks/js/FlexJS/src/org/apache/flex/geom/Rectangle.js ---------------------------------------------------------------------- diff --git a/frameworks/js/FlexJS/src/org/apache/flex/geom/Rectangle.js b/frameworks/js/FlexJS/src/org/apache/flex/geom/Rectangle.js index 32f126c..ccf92f7 100644 --- a/frameworks/js/FlexJS/src/org/apache/flex/geom/Rectangle.js +++ b/frameworks/js/FlexJS/src/org/apache/flex/geom/Rectangle.js @@ -25,28 +25,12 @@ goog.provide('org.apache.flex.geom.Rectangle'); */ org.apache.flex.geom.Rectangle = function(left, top, width, height) { - /** - * @protected - * @type {number} - */ this.left = left; - /** - * @protected - * @type {number} - */ this.top = top; - /** - * @protected - * @type {number} - */ this.width = width; - /** - * @protected - * @type {number} - */ this.height = height; }; @@ -65,88 +49,30 @@ org.apache.flex.geom.Rectangle.prototype.FLEXJS_CLASS_INFO = /** * @expose * The left coordinate. - * @return {number} value The left coordinate. + * @type {number} value The left coordinate. */ -org.apache.flex.geom.Rectangle.prototype.get_left = - function() { - return this.left; -}; - - -/** - * @expose - * The left coordinate. - * @param {number} value The left coordinate. - */ -org.apache.flex.geom.Rectangle.prototype.set_left = - function(value) { - this.left = value; -}; +org.apache.flex.geom.Rectangle.prototype.left = 0; /** * @expose * The top coordinate. - * @return {number} value The top coordinate. - */ -org.apache.flex.geom.Rectangle.prototype.get_top = - function() { - return this.top; -}; - - -/** - * @expose - * The top coordinate. - * @param {number} value The top coordinate. - */ -org.apache.flex.geom.Rectangle.prototype.set_top = - function(value) { - this.top = value; -}; - - -/** - * @expose - * The width coordinate. - * @return {number} value The width coordinate. + * @type {number} value The top coordinate. */ -org.apache.flex.geom.Rectangle.prototype.get_width = - function() { - return this.width; -}; +org.apache.flex.geom.Rectangle.prototype.top = 0; /** * @expose * The width coordinate. - * @param {number} value The width coordinate. + * @type {number} value The width coordinate. */ -org.apache.flex.geom.Rectangle.prototype.set_width = - function(value) { - this.width = value; -}; +org.apache.flex.geom.Rectangle.prototype.width = 0; /** * @expose * The height coordinate. - * @return {number} value The height coordinate. + * @type {number} value The height coordinate. */ -org.apache.flex.geom.Rectangle.prototype.get_height = - function() { - return this.height; -}; - - -/** - * @expose - * The height coordinate. - * @param {number} value The height coordinate. - */ -org.apache.flex.geom.Rectangle.prototype.set_height = - function(value) { - this.height = value; -}; - - +org.apache.flex.geom.Rectangle.prototype.height = 9;