little bitta JSDOC

git-svn-id: http://svn.openlayers.org/trunk/openlayers@457 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
euzuro
2006-05-29 18:27:24 +00:00
parent 82839000d6
commit fd184a3903

View File

@@ -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');