Incorporate remaining review comments from @bartvde.

This commit is contained in:
ahocevar
2012-01-20 14:18:15 +01:00
parent e70569b2bb
commit e09ee34f23
3 changed files with 2 additions and 3 deletions

View File

@@ -170,7 +170,7 @@ OpenLayers.Control.Panel = OpenLayers.Class(OpenLayers.Control, {
draw: function() {
OpenLayers.Control.prototype.draw.apply(this, arguments);
if (this.div.parentNode === this.map.viewPortDiv) {
map.events.register("buttonclick", this, this.onButtonClick);
this.map.events.register("buttonclick", this, this.onButtonClick);
} else {
this.events.element = this.div;
this.events.register("buttonclick", this, this.onButtonClick);