[OpenLayers-Commits] r10864 - trunk/openlayers/lib/OpenLayers/Control

commits-20090109 at openlayers.org commits-20090109 at openlayers.org
Thu Oct 28 02:50:31 EDT 2010


Author: fredj
Date: 2010-10-27 23:50:31 -0700 (Wed, 27 Oct 2010)
New Revision: 10864

Modified:
   trunk/openlayers/lib/OpenLayers/Control/WMTSGetFeatureInfo.js
Log:
Remove the activate, deactivate and setMap functions from the
WMTSGetFeatureInfo control. Not needed because they do the same as the
parent class. r=erilem (closes #2805)


Modified: trunk/openlayers/lib/OpenLayers/Control/WMTSGetFeatureInfo.js
===================================================================
--- trunk/openlayers/lib/OpenLayers/Control/WMTSGetFeatureInfo.js	2010-10-28 06:44:35 UTC (rev 10863)
+++ trunk/openlayers/lib/OpenLayers/Control/WMTSGetFeatureInfo.js	2010-10-28 06:50:31 UTC (rev 10864)
@@ -213,35 +213,6 @@
     },
 
     /**
-     * Method: activate
-     * Activates the control.
-     * 
-     * Returns:
-     * {Boolean} The control was effectively activated.
-     */
-    activate: function () {
-        if (!this.active) {
-            this.handler.activate();
-        }
-        return OpenLayers.Control.prototype.activate.apply(
-            this, arguments
-        );
-    },
-
-    /**
-     * Method: deactivate
-     * Deactivates the control.
-     * 
-     * Returns:
-     * {Boolean} The control was effectively deactivated.
-     */
-    deactivate: function () {
-        return OpenLayers.Control.prototype.deactivate.apply(
-            this, arguments
-        );
-    },
-    
-    /**
      * Method: getInfoForClick 
      * Called on click
      *
@@ -425,18 +396,6 @@
             }
         }
     },
-   
-    /** 
-     * Method: setMap
-     * Set the map property for the control. 
-     * 
-     * Parameters:
-     * map - {<OpenLayers.Map>} 
-     */
-    setMap: function(map) {
-        this.handler.setMap(map);
-        OpenLayers.Control.prototype.setMap.apply(this, arguments);
-    },
 
     CLASS_NAME: "OpenLayers.Control.WMTSGetFeatureInfo"
 });



More information about the Commits mailing list