From 7800e5f84e23b2776b9bb201bbd17c6a80c39554 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Sat, 7 Dec 2013 19:45:10 +0100 Subject: [PATCH] Clean up strange constructor notation that causes linting issue. --- src/basic/Rectangle.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/basic/Rectangle.js b/src/basic/Rectangle.js index a84638b4..1176469a 100644 --- a/src/basic/Rectangle.js +++ b/src/basic/Rectangle.js @@ -237,8 +237,8 @@ var Rectangle = Base.extend(/** @lends Rectangle# */{ * @bean */ getPoint: function(/* dontLink */) { - return new (arguments[0] ? Point : LinkedPoint) - (this.x, this.y, this, 'setPoint'); + return new (arguments[0] ? Point : LinkedPoint)( + this.x, this.y, this, 'setPoint'); }, setPoint: function(point) { @@ -255,8 +255,8 @@ var Rectangle = Base.extend(/** @lends Rectangle# */{ * @bean */ getSize: function(/* dontLink */) { - return new (arguments[0] ? Size : LinkedSize) - (this.width, this.height, this, 'setSize'); + return new (arguments[0] ? Size : LinkedSize)( + this.width, this.height, this, 'setSize'); }, setSize: function(size) { @@ -401,8 +401,8 @@ var Rectangle = Base.extend(/** @lends Rectangle# */{ * @bean */ getCenter: function(/* dontLink */) { - return new (arguments[0] ? Point : LinkedPoint) - (this.getCenterX(), this.getCenterY(), this, 'setCenter'); + return new (arguments[0] ? Point : LinkedPoint)( + this.getCenterX(), this.getCenterY(), this, 'setCenter'); }, setCenter: function(point) { @@ -809,8 +809,8 @@ var Rectangle = Base.extend(/** @lends Rectangle# */{ get = 'get' + part, set = 'set' + part; this[get] = function(/* dontLink */) { - return new (arguments[0] ? Point : LinkedPoint) - (this[getX](), this[getY](), this, set); + return new (arguments[0] ? Point : LinkedPoint)( + this[getX](), this[getY](), this, set); }; this[set] = function(point) { point = Point.read(arguments);