Incorporate remaining review comments from @bartvde.
This commit is contained in:
@@ -354,7 +354,6 @@ OpenLayers.Control.OverviewMap = OpenLayers.Class(OpenLayers.Control, {
|
||||
onButtonClick: function(evt) {
|
||||
if (evt.button === this.minimizeDiv) {
|
||||
this.minimizeControl();
|
||||
propagate = false;
|
||||
} else if (evt.button === this.maximizeDiv) {
|
||||
this.maximizeControl();
|
||||
};
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* event type fires "buttonclick" on its <target> when a button was
|
||||
* clicked. Buttons are detected by the "olButton" class.
|
||||
*
|
||||
* This event type makes sure that button clicks do not interfer with other
|
||||
* This event type makes sure that button clicks do not interfere with other
|
||||
* events that are registered on the same <element>.
|
||||
*/
|
||||
OpenLayers.Events.buttonclick = OpenLayers.Class({
|
||||
|
||||
Reference in New Issue
Block a user