Use div.childNodes instead of div.children, as div.children isn't supported by FireFox 3.0, p=fvanderbiest, r=me (closes #2855)

git-svn-id: http://svn.openlayers.org/trunk/openlayers@10801 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
Éric Lemoine
2010-09-30 11:26:29 +00:00
parent 2049b2a8b2
commit 233ffe6a10

View File

@@ -167,10 +167,8 @@ OpenLayers.Control.Panel = OpenLayers.Class(OpenLayers.Control, {
* Method: redraw
*/
redraw: function() {
if (this.div.children.length>0) {
for (var l=this.div.children.length, i=l-1 ; i>=0 ; i--) {
this.div.removeChild(this.div.children[i]);
}
for (var l=this.div.childNodes.length, i=l-1; i>=0; i--) {
this.div.removeChild(this.div.childNodes[i]);
}
this.div.innerHTML = "";
if (this.active) {