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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user