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