Define squared parameter in Point#getDistance() as optional.

This commit is contained in:
Jürg Lehni 2012-11-02 16:45:46 -07:00
parent b22ff5ecca
commit 88dff19f73

View file

@ -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) {