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

View File

@@ -228,7 +228,10 @@ OpenLayers.Map.prototype = {
}
this.controls = null;
}
this.div.innerHTML = "";
if (this.viewPortDiv) {
this.div.removeChild(this.viewPortDiv);
}
this.viewPortDiv = null;
},
/**