code: function(geometry) {
          var equivalent = true;
          if(!geometry || !geometry.CLASS_NAME ||
             (this.CLASS_NAME != geometry.CLASS_NAME)) {
              equivalent = false;
          } else if(!(OpenLayers.Util.isArray(geometry.components)) ||
                    (geometry.components.length != this.components.length)) {
              equivalent = false;
          } else {
              for(var i=0, len=this.components.length; i<len; ++i) {
                  if(!this.components[i].equals(geometry.components[i])) {
                      equivalent = false;
                      break;
                  }
              }
          }
          return equivalent;
      }
docs: APIMethod: equals
  Determine whether another geometry is equivalent to this one.  Geometries
  are considered equivalent if all components have the same coordinates.
  
  Parameters:
  geometry - {<OpenLayers.Geometry>} The geometry to test.
  
  Returns:
  {Boolean} The supplied geometry is equivalent to this geometry.