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