second patch to fix #549. this time, instead of just clearing out everything in the div, it removes only what it added.

git-svn-id: http://svn.openlayers.org/trunk/openlayers@2858 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
euzuro
2007-03-22 19:47:48 +00:00
parent aa30fe25f4
commit 3ed14463f2
2 changed files with 5 additions and 2 deletions
+4 -1
View File
@@ -228,7 +228,10 @@ OpenLayers.Map.prototype = {
} }
this.controls = null; this.controls = null;
} }
this.div.innerHTML = ""; if (this.viewPortDiv) {
this.div.removeChild(this.viewPortDiv);
}
this.viewPortDiv = null;
}, },
/** /**
+1 -1
View File
@@ -367,7 +367,7 @@
map.destroy(); map.destroy();
t.eq( map.layers, null, "map.layers is null after destroy" ); t.eq( map.layers, null, "map.layers is null after destroy" );
t.eq( map.controls, null, "map.controls is null after destroy" ); t.eq( map.controls, null, "map.controls is null after destroy" );
t.eq( map.div.innerHTML, "", "map's div cleared out"); t.eq( map.viewPortDiv, null, "map's viewportDiv nullified");
} }
// --> // -->
</script> </script>