From 239f542783338802bcfd6ac2e8c2fa8c9a999a11 Mon Sep 17 00:00:00 2001 From: follower Date: Thu, 15 Jun 2006 17:19:07 +0000 Subject: [PATCH] Rename 'doubleClick' to 'ignoreEvent' now the method is being used to stop events in more than one situation. git-svn-id: http://svn.openlayers.org/trunk/openlayers@599 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- lib/OpenLayers/Control/LayerSwitcher.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/OpenLayers/Control/LayerSwitcher.js b/lib/OpenLayers/Control/LayerSwitcher.js index 3ce422b8a9..246ca86ded 100644 --- a/lib/OpenLayers/Control/LayerSwitcher.js +++ b/lib/OpenLayers/Control/LayerSwitcher.js @@ -111,9 +111,11 @@ OpenLayers.Control.LayerSwitcher.prototype = }, /** + * @private + * * @param {event} evt */ - doubleClick: function(evt) { + ignoreEvent: function(evt) { Event.stop(evt); return false; }, @@ -145,8 +147,8 @@ OpenLayers.Control.LayerSwitcher.prototype = backdropLabel.layer = layer; // set event handlers - backdropLabelOuter.onclick = this.doubleClick.bindAsEventListener(this); - backdropLabelOuter.ondblclick = this.doubleClick.bindAsEventListener(this); + backdropLabelOuter.onclick = this.ignoreEvent.bindAsEventListener(this); + backdropLabelOuter.ondblclick = this.ignoreEvent.bindAsEventListener(this); backdropLabelOuter.onmousedown = this.singleClick.bindAsEventListener(this); // add label to div