Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function Rect_1(x, y) {
- this._x = x;
- this._y = y;
- /*this.setX = (value) => {
- this._x = value;
- };
- this.getX = () => {
- return this._x;
- };*/
- }
- Rect_1.prototype.setY = function(value) {
- this._y = value;
- }
- Rect_1.prototype.getY = function() {
- return this._y;
- }
- Object.defineProperty(Rect_1.prototype, "y", {
- get: Rect_1.prototype.getY,
- set: Rect_1.prototype.setY
- })
- Rect_1.prototype.setX = function(value) {
- this._x = value;
- }
- Rect_1.prototype.getX = function() {
- return this._x;
- }
- Object.defineProperties(Rect_1.prototype, {
- "x": {
- get: Rect_1.prototype.getX,
- set: Rect_1.prototype.setX
- }
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement