From 233ffe6a10f2683ac239f2a6ba6934292f593be9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Lemoine?= Date: Thu, 30 Sep 2010 11:26:29 +0000 Subject: [PATCH] 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 --- lib/OpenLayers/Control/Panel.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/OpenLayers/Control/Panel.js b/lib/OpenLayers/Control/Panel.js index 24750b0011..23e0c9a7d5 100644 --- a/lib/OpenLayers/Control/Panel.js +++ b/lib/OpenLayers/Control/Panel.js @@ -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) {