Incorporate remaining review comments from @bartvde.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user