remove unneeded activate and deactivate functions
This commit is contained in:
@@ -210,35 +210,6 @@ OpenLayers.Control.WMSGetFeatureInfo = OpenLayers.Class(OpenLayers.Control, {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
|
||||||
* 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
|
* Method: getInfoForClick
|
||||||
* Called on click
|
* Called on click
|
||||||
|
|||||||
Reference in New Issue
Block a user