Zoom control tests.

This commit is contained in:
Tim Schaub
2012-03-02 22:52:18 -07:00
parent 45b9c48c43
commit f45043967b
3 changed files with 77 additions and 2 deletions

View File

@@ -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);