this is a suggested fix to #57, but it doesnt seem to work.

git-svn-id: http://svn.openlayers.org/trunk/openlayers@498 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
euzuro
2006-06-01 16:57:19 +00:00
parent a51ef143c6
commit 51371a1ecf

View File

@@ -143,10 +143,9 @@ OpenLayers.Control.LayerSwitcher.prototype =
backdropLabel.layer = layer;
// set event handlers
backdropLabel.ondblclick = this.doubleClick.bindAsEventListener(this);
backdropLabel.onmousedown = this.singleClick.bindAsEventListener(this);
backdropLabelOuter.ondblclick = this.doubleClick.bindAsEventListener(this);
backdropLabelOuter.onmousedown = this.singleClick.bindAsEventListener(this);
// add label to div
backdropLabelOuter.appendChild(backdropLabel);