From 88dff19f73694b0f614d99193f8f9c748462f8b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Fri, 2 Nov 2012 16:45:46 -0700 Subject: [PATCH] Define squared parameter in Point#getDistance() as optional. --- src/basic/Point.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/basic/Point.js b/src/basic/Point.js index 975397ab..be62d28f 100644 --- a/src/basic/Point.js +++ b/src/basic/Point.js @@ -411,8 +411,8 @@ var Point = this.Point = Base.extend(/** @lends Point# */{ * Returns the distance between the point and another point. * * @param {Point} point - * @param {Boolean} squared Controls whether the distance should remain - * squared, or its square root should be calculated. + * @param {Boolean} [squared=false] Controls whether the distance should + * remain squared, or its square root should be calculated. * @return {Number} */ getDistance: function(point, squared) {