Removing use of deprecated control.

git-svn-id: http://svn.openlayers.org/trunk/openlayers@9234 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
Tim Schaub
2009-04-07 20:38:11 +00:00
parent 0e05f90932
commit e72da4f74e
7 changed files with 55 additions and 30 deletions

View File

@@ -304,6 +304,11 @@ OpenLayers.Control = OpenLayers.Class({
this.handler.activate();
}
this.active = true;
if(this.map) {
OpenLayers.Element.addClass(
this.map.div, this.displayClass + "Active"
);
}
this.events.triggerEvent("activate");
return true;
},
@@ -323,6 +328,11 @@ OpenLayers.Control = OpenLayers.Class({
this.handler.deactivate();
}
this.active = false;
if(this.map) {
OpenLayers.Element.removeClass(
this.map.div, this.displayClass + "Active"
);
}
this.events.triggerEvent("deactivate");
return true;
}