From ca0a8407b474667e67d83819abccc77b059bdb23 Mon Sep 17 00:00:00 2001 From: euzuro Date: Wed, 17 May 2006 02:59:37 +0000 Subject: [PATCH] move the append up into the loop, so as not to repeatedly append extant divs git-svn-id: http://svn.openlayers.org/trunk/openlayers@80 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- lib/OpenLayers/Control/LayerSwitcher.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/OpenLayers/Control/LayerSwitcher.js b/lib/OpenLayers/Control/LayerSwitcher.js index e3ac371240..1ce4dfcd7e 100644 --- a/lib/OpenLayers/Control/LayerSwitcher.js +++ b/lib/OpenLayers/Control/LayerSwitcher.js @@ -75,8 +75,8 @@ OpenLayers.Control.LayerSwitcher.prototype = div.ondblclick = this.doubleClick.bindAsEventListener(div); div.onmousedown = this.singleClick.bindAsEventListener(div); + this.div.appendChild(div); } - this.div.appendChild(div); pixel = pixel.add(0, 35); } return this.div;