From dab3144c16dee5041ee34c6c11b7f3ba21393a9e Mon Sep 17 00:00:00 2001 From: euzuro Date: Tue, 4 Sep 2007 10:34:45 +0000 Subject: [PATCH] coding standards - mostly 4ixing spacing issues with ND comments. git-svn-id: http://svn.openlayers.org/trunk/openlayers@4185 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- lib/OpenLayers/Control/LayerSwitcher.js | 43 +++++++++++++------------ 1 file changed, 23 insertions(+), 20 deletions(-) diff --git a/lib/OpenLayers/Control/LayerSwitcher.js b/lib/OpenLayers/Control/LayerSwitcher.js index d053eda69a..5a25fa72d9 100644 --- a/lib/OpenLayers/Control/LayerSwitcher.js +++ b/lib/OpenLayers/Control/LayerSwitcher.js @@ -10,10 +10,12 @@ * Inherits from: * - */ -OpenLayers.Control.LayerSwitcher = OpenLayers.Class(OpenLayers.Control, { +OpenLayers.Control.LayerSwitcher = + OpenLayers.Class(OpenLayers.Control, { /** * Property: activeColor + * {String} */ activeColor: "darkblue", @@ -124,12 +126,12 @@ OpenLayers.Control.LayerSwitcher = OpenLayers.Class(OpenLayers.Control, { }, /** - * Method: draw - * - * Returns: - * {DOMElement} A reference to the DIV DOMElement containing the switcher - * tabs - */ + * Method: draw + * + * Returns: + * {DOMElement} A reference to the DIV DOMElement containing the + * switcher tabs. + */ draw: function() { OpenLayers.Control.prototype.draw.apply(this); @@ -149,8 +151,8 @@ OpenLayers.Control.LayerSwitcher = OpenLayers.Class(OpenLayers.Control, { /** * Method: clearLayersArray - * user specifies either "base" or "data". we then clear all the - * corresponding listeners, the div, and reinitialize a new array. + * User specifies either "base" or "data". we then clear all the + * corresponding listeners, the div, and reinitialize a new array. * * Parameters: * layersType - {String} @@ -172,8 +174,8 @@ OpenLayers.Control.LayerSwitcher = OpenLayers.Class(OpenLayers.Control, { /** * Method: redraw * Goes through and takes the current state of the Map and rebuilds the - * control to display that state. Groups base layers into a radio-button - * group and lists each data layer with a checkbox. + * control to display that state. Groups base layers into a + * radio-button group and lists each data layer with a checkbox. * * Returns: * {DOMElement} A reference to the DIV DOMElement containing the control @@ -295,9 +297,9 @@ OpenLayers.Control.LayerSwitcher = OpenLayers.Class(OpenLayers.Control, { }, /** - * Method: + * Method: onLayerClick * Need to update the map accordingly whenever user clicks in either of - * the layers. + * the layers. * * Parameters: * e - {Event} @@ -310,8 +312,9 @@ OpenLayers.Control.LayerSwitcher = OpenLayers.Class(OpenLayers.Control, { /** * Method: updateMap * Cycles through the loaded data and base layer input arrays and makes - * the necessary calls to the Map object such that that the map's - * visual state corresponds to what the user has selected in the control + * the necessary calls to the Map object such that that the map's + * visual state corresponds to what the user has selected in + * the control. */ updateMap: function() { @@ -354,7 +357,7 @@ OpenLayers.Control.LayerSwitcher = OpenLayers.Class(OpenLayers.Control, { /** * Method: minimizeControl * Hide all the contents of the control, shrink the size, - * add the maximize icon + * add the maximize icon * * Parameters: * e - {Event} @@ -374,7 +377,7 @@ OpenLayers.Control.LayerSwitcher = OpenLayers.Class(OpenLayers.Control, { /** * Method: showControls * Hide/Show all LayerSwitcher controls depending on whether we are - * minimized or not + * minimized or not * * Parameters: * minimize - {Boolean} @@ -529,7 +532,7 @@ OpenLayers.Control.LayerSwitcher = OpenLayers.Class(OpenLayers.Control, { /** * Method: mouseDown * Register a local 'mouseDown' flag so that we'll know whether or not - * to ignore a mouseUp event + * to ignore a mouseUp event * * Parameters: * evt - {Event} @@ -542,8 +545,8 @@ OpenLayers.Control.LayerSwitcher = OpenLayers.Class(OpenLayers.Control, { /** * Method: mouseUp * If the 'isMouseDown' flag has been set, that means that the drag was - * started from within the LayerSwitcher control, and thus we can - * ignore the mouseup. Otherwise, let the Event continue. + * started from within the LayerSwitcher control, and thus we can + * ignore the mouseup. Otherwise, let the Event continue. * * Parameters: * evt - {Event}