From d260d7c3ae4bcdf836581a079b251dd0f9e5344c Mon Sep 17 00:00:00 2001 From: euzuro Date: Wed, 17 May 2006 02:08:21 +0000 Subject: [PATCH] JSDOC, coding standards git-svn-id: http://svn.openlayers.org/trunk/openlayers@74 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- lib/OpenLayers/Control/LayerSwitcher.js | 57 ++++++++++++++++++------- 1 file changed, 42 insertions(+), 15 deletions(-) diff --git a/lib/OpenLayers/Control/LayerSwitcher.js b/lib/OpenLayers/Control/LayerSwitcher.js index 155978e76c..77641dfd57 100644 --- a/lib/OpenLayers/Control/LayerSwitcher.js +++ b/lib/OpenLayers/Control/LayerSwitcher.js @@ -1,34 +1,50 @@ +/** +* @class +*/ OpenLayers.Control.LayerSwitcher = Class.create(); OpenLayers.Control.LayerSwitcher.prototype = Object.extend( new OpenLayers.Control(), { + + /** + * @constructor + */ initialize: function() { OpenLayers.Control.prototype.initialize.apply(this, arguments); }, - + + /** + * @type DOMElement + */ draw: function() { // initialize our internal div OpenLayers.Control.prototype.draw.apply(this); this.map.events.register("addlayer", this, this.redraw); return this.redraw(); }, + + /** + * @type DOMElement + */ redraw: function() { - var pixel = new OpenLayers.Pixel(this.map.div.clientWidth-200,4); + var pixel = new OpenLayers.Pixel(this.map.div.clientWidth - 200, 4); this.div.innerHTML = ""; - for(i=0; i