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
This commit is contained in:
follower
2006-06-15 17:19:07 +00:00
parent 4b9445115b
commit 239f542783

View File

@@ -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