[OpenLayers-Commits] r7315 - sandbox/topp/almanac/lib/OpenLayers/Control

commits at openlayers.org commits at openlayers.org
Thu Jun 5 22:12:13 EDT 2008


Author: sbenthall
Date: 2008-06-05 22:12:13 -0400 (Thu, 05 Jun 2008)
New Revision: 7315

Modified:
   sandbox/topp/almanac/lib/OpenLayers/Control/Radio.js
Log:
better comments, proper deactivation for Radio

Modified: sandbox/topp/almanac/lib/OpenLayers/Control/Radio.js
===================================================================
--- sandbox/topp/almanac/lib/OpenLayers/Control/Radio.js	2008-06-06 01:19:12 UTC (rev 7314)
+++ sandbox/topp/almanac/lib/OpenLayers/Control/Radio.js	2008-06-06 02:12:13 UTC (rev 7315)
@@ -1,3 +1,15 @@
+
+/**
+ * @requires OpenLayers/Control.js
+ */
+
+/**
+ * Class: OpenLayers.Control.Radio
+ * A control that makes a set of DOM elements act like radio buttons.
+ *
+ * Inherits from:
+ *  - <OpenLayers.Control>
+ */
 OpenLayers.Control.Radio = OpenLayers.Class(OpenLayers.Control, {
     
     EVENT_TYPES: ["activate", "deactivate", "clicked"],
@@ -2,7 +14,12 @@
     
+    /**
+     * Property: selectedCSSClassName
+     * 
+     * 
+     */
 	selectedCSSClassName : "selected",
     
     /**
      * Property: radios
-     * {Array(~~~~~~~~}
+     * {Array} An array of objects, with id and value properties.
      */
@@ -15,7 +32,7 @@
     /**
      * 
      * Parameters:
-     * toggles - omg!
+     * radios - omg!
      * options - {Object} An optional object whose properties will be used
      *     to extend the control.
      */
@@ -54,7 +71,7 @@
      * APIMethod: deactivate
      */
     deactivate: function() {
-        
+        OpenLayers.Control.prototype.deactivate.apply(this, arguments);
     },
     
     makeOnclick: function(radio){



More information about the Commits mailing list