From f3e118ac9a474ffed3dd8198579378742c4a1a85 Mon Sep 17 00:00:00 2001 From: Jonathan Puckey Date: Mon, 23 May 2011 03:11:53 +0200 Subject: [PATCH] Documentation: Point#equals --- src/basic/Point.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/basic/Point.js b/src/basic/Point.js index 16e46393..60745d2d 100644 --- a/src/basic/Point.js +++ b/src/basic/Point.js @@ -468,8 +468,14 @@ var Point = this.Point = Base.extend({ }, /** - * Checks whether the point has the same x and y values as the specified - * point. + * Checks whether the coordinates of the point are equal to that of the + * supplied point. + * + * @example + * var point = new Point(5, 10); + * console.log(point == new Point(5, 10)); // true + * console.log(point == new Point(1, 1)); // false + * console.log(point != new Point(1, 1)); // true * * @param {Point} * @return {boolean}