Zoom control tests.
This commit is contained in:
@@ -126,11 +126,11 @@ OpenLayers.Control.Zoom = OpenLayers.Class(OpenLayers.Control, {
|
||||
*/
|
||||
destroy: function() {
|
||||
if (this.zoomInLink) {
|
||||
delete this.zoomInLink.onclick;
|
||||
this.zoomInLink.onclick = null;
|
||||
delete this.zoomInLink;
|
||||
}
|
||||
if (this.zoomOutLink) {
|
||||
delete this.zoomOutLink.onclick;
|
||||
this.zoomOutLink.onclick = null;
|
||||
delete this.zoomOutLink;
|
||||
}
|
||||
OpenLayers.Control.prototype.destroy.apply(this);
|
||||
|
||||
Reference in New Issue
Block a user