jsfiddle/OpenLayers.debug.js
function(str) {
            var points = OpenLayers.String.trim(str).split(',');
            var components = [];
            for(var i=0, len=points.length; i<len; ++i) {
                components.push(this.parse.point.apply(this, [points[i]]).geometry);
            }
            return new OpenLayers.Feature.Vector(
                new OpenLayers.Geometry.LineString(components)
            );
        }
function(str) {
            var points = OpenLayers.String.trim(str).split(',');
            var components = [];
            for(var i=0, len=points.length; i<len; ++i) {
                components.push(this.parse.point.apply(this, [points[i]]).geometry);
            }
            return new OpenLayers.Feature.Vector(
                new OpenLayers.Geometry.LineString(components)
            );
        }
function ( str ) { var points = OpenLayers . String . trim ( str ) . split ( ',' ) ; var components = [ ] ; for ( var i = 0 , len = points . length ; i < len ; ++ i ) { components . push ( this . parse . point . apply ( this , [ points [ i ] ] ) . geometry ) ; } return new OpenLayers . Feature . Vector ( new OpenLayers . Geometry . LineString ( components ) ) ; }
Return a linestring feature given a linestring WKT fragment.
@param {String} str A WKT fragment representing the linestring
@returns {OpenLayers.Feature.Vector} A linestring feature
@private
Return a linestring feature given a linestring WKT fragment .