mirror of
https://github.com/FoggedLens/iD.git
synced 2026-06-04 05:58:09 +02:00
Slow-remove tiles, pay attention to parentNode, refs #686
This commit is contained in:
@@ -112,8 +112,11 @@ iD.Background = function() {
|
||||
.each(function() {
|
||||
var tile = this;
|
||||
window.setTimeout(function() {
|
||||
tile.parentNode.removeChild(tile);
|
||||
});
|
||||
// this tile may already be removed
|
||||
if (tile.parentNode) {
|
||||
tile.parentNode.removeChild(tile);
|
||||
}
|
||||
}, 300);
|
||||
});
|
||||
|
||||
image.enter().append('img')
|
||||
|
||||
Reference in New Issue
Block a user