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
This commit is contained in:
euzuro
2006-05-17 02:59:37 +00:00
parent b0020d6f40
commit ca0a8407b4

View File

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