Explorar el Código

Fix the arrows for very large entities not disappearing when the entity is deleted

tags/v0.1.0
Fen Dweller hace 6 años
padre
commit
c7362189ef
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. +2
    -0
      macrovision.js

+ 2
- 0
macrovision.js Ver fichero

@@ -904,7 +904,9 @@ function removeEntity(element) {


delete entities[element.dataset.key]; delete entities[element.dataset.key];
const bottomName = document.querySelector("#bottom-name-" + element.dataset.key); const bottomName = document.querySelector("#bottom-name-" + element.dataset.key);
const topName = document.querySelector("#top-name-" + element.dataset.key);
bottomName.parentElement.removeChild(bottomName); bottomName.parentElement.removeChild(bottomName);
topName.parentElement.removeChild(topName);
element.parentElement.removeChild(element); element.parentElement.removeChild(element);


} }


Cargando…
Cancelar
Guardar