[OpenLayers-Commits] r4185 - trunk/openlayers/lib/OpenLayers/Control
commits at openlayers.org
commits at openlayers.org
Tue Sep 4 06:34:47 EDT 2007
Author: euzuro
Date: 2007-09-04 06:34:45 -0400 (Tue, 04 Sep 2007)
New Revision: 4185
Modified:
trunk/openlayers/lib/OpenLayers/Control/LayerSwitcher.js
Log:
coding standards - mostly 4ixing spacing issues with ND comments.
Modified: trunk/openlayers/lib/OpenLayers/Control/LayerSwitcher.js
===================================================================
--- trunk/openlayers/lib/OpenLayers/Control/LayerSwitcher.js 2007-09-04 10:28:16 UTC (rev 4184)
+++ trunk/openlayers/lib/OpenLayers/Control/LayerSwitcher.js 2007-09-04 10:34:45 UTC (rev 4185)
@@ -10,10 +10,12 @@
* Inherits from:
* - <OpenLayers.Control>
*/
-OpenLayers.Control.LayerSwitcher = OpenLayers.Class(OpenLayers.Control, {
+OpenLayers.Control.LayerSwitcher =
+ OpenLayers.Class(OpenLayers.Control, {
/**
* Property: activeColor
+ * {String}
*/
activeColor: "darkblue",
@@ -124,12 +126,12 @@
},
/**
- * 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 @@
/**
* 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 @@
/**
* 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 @@
},
/**
- * 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 @@
/**
* 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 @@
/**
* 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 @@
/**
* 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 @@
/**
* 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 @@
/**
* 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}
More information about the Commits
mailing list