code: function() {
          var length = 0.0;
          if ( this.components && (this.components.length > 1)) {
              for(var i=1, len=this.components.length; i<len; i++) {
                  length += this.components[i-1].distanceTo(this.components[i]);
              }
          }
          return length;
      }
docs: Constructor: OpenLayers.Geometry.Curve
  
  Parameters:
  point - {Array(<OpenLayers.Geometry.Point>)}
   
  APIMethod: getLength
  
  Returns:
  {Float} The length of the curve