diff --git a/lib/OpenLayers/Geometry/Collection.js b/lib/OpenLayers/Geometry/Collection.js index 884ea50b4a..116da965df 100644 --- a/lib/OpenLayers/Geometry/Collection.js +++ b/lib/OpenLayers/Geometry/Collection.js @@ -331,15 +331,16 @@ OpenLayers.Geometry.Collection = OpenLayers.Class(OpenLayers.Geometry, { return best; }, - /** + /** * APIMethod: equals - * Tests for equivalent geometries - * + * Determine whether another geometry is equivalent to this one. Geometries + * are considered equivalent if all components have the same coordinates. + * * Parameters: - * geometry - {} + * geom - {} The geometry to test. * * Returns: - * {Boolean} The coordinates are equivalent + * {Boolean} The supplied geometry is equivalent to this geometry. */ equals: function(geometry) { var equivalent = true; diff --git a/lib/OpenLayers/Geometry/Point.js b/lib/OpenLayers/Geometry/Point.js index 79bd8d2264..643dd8cf92 100644 --- a/lib/OpenLayers/Geometry/Point.js +++ b/lib/OpenLayers/Geometry/Point.js @@ -123,18 +123,17 @@ OpenLayers.Geometry.Point = OpenLayers.Class(OpenLayers.Geometry, { }, /** - * APIMethod: equals - * - * Parameters: - * xy - {} - * - * Returns: - * {Boolean} Boolean value indicating whether the passed-in - * {} object has the same components as this - * note that if ll passed in is null, returns false - * - */ - equals:function(geom) { + * APIMethod: equals + * Determine whether another geometry is equivalent to this one. Geometries + * are considered equivalent if all components have the same coordinates. + * + * Parameters: + * geom - {} The geometry to test. + * + * Returns: + * {Boolean} The supplied geometry is equivalent to this geometry. + */ + equals: function(geom) { var equals = false; if (geom != null) { equals = ((this.x == geom.x && this.y == geom.y) ||