Hi all,
I've been reading about different ways on how to override an existing
method.
That are, e.g.:
* OpenLayer.Control.myControl = OpenLayers.Class.create();
* OpenLayers.Control.myControl.prototype = OpenLayers.Class.inherit(
OpenLayers.Control.Navigation, {
*
* defaultDblClick: function (evt) {
* // ...my defaultDblClick overridden code...
* },
*
* CLASS_NAME: "OpenLayers.Control.myNavigation"
* });
Or simply:
* OpenLayers.Control.myControl =
OpenLayers.Class(OpenLayers.Control.Navigation, {
*
* defaultDblClick: function (evt) {
* // ...my defaultDblClick overridden code...
* }})
Is there any difference between these methods?
I would really appreciate an explanation, thank you so much.
Piero
--
View this message in context:
http://osgeo-org.1803224.n2.nabble.com/Augmenting-a-method-tp1824859p5320323.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
Users mailing list
[email protected]
http://openlayers.org/mailman/listinfo/users