diff --git a/src/basic/Point.js b/src/basic/Point.js index cbde7e87..b845b6bc 100644 --- a/src/basic/Point.js +++ b/src/basic/Point.js @@ -199,10 +199,11 @@ var Point = Base.extend(/** @lends Point# */{ * console.log(point != new Point(1, 1)); // true */ equals: function(point) { - return point === this || point && (this.x === point.x - && this.y === point.y - || Array.isArray(point) && this.x === point[0] - && this.y === point[1]) || false; + return this === point || point + && (this.x === point.x && this.y === point.y + || Array.isArray(point) + && this.x === point[0] && this.y === point[1]) + || false; }, /**