diff --git a/lib/OpenLayers/Layer/Text.js b/lib/OpenLayers/Layer/Text.js index 2124bcab01..17d45c13c3 100644 --- a/lib/OpenLayers/Layer/Text.js +++ b/lib/OpenLayers/Layer/Text.js @@ -1,4 +1,5 @@ // @require: OpenLayers/Layer/Markers.js + /** * @class */ @@ -17,6 +18,7 @@ OpenLayers.Layer.Text.prototype = * @constructor * * @param {String} name + * @param {String} location */ initialize: function(name, location) { OpenLayers.Layer.Markers.prototype.initialize.apply(this, [name]); @@ -24,6 +26,10 @@ OpenLayers.Layer.Text.prototype = new Ajax.Request(location, { method: 'get', onComplete:this.parseData.bind(this) } ); }, + + /** + * @param {?} ajaxRequest + */ parseData: function(ajaxRequest) { var text = ajaxRequest.responseText; var lines = text.split('\n');