More consistent clean up

This commit is contained in:
Tim Schaub
2017-07-03 12:24:40 -06:00
parent 44a976eb60
commit 32c26c2524
4 changed files with 83 additions and 71 deletions
+3 -1
View File
@@ -368,8 +368,10 @@
global.disposeMap = function(map) {
var target = map.getTarget();
map.setTarget(null);
if (target && target.parentNode) {
target.parentNode.removeChild(target);
}
map.dispose();
document.body.removeChild(target);
};
global.assertWebGL = function(map) {