Este sitio web funciona mejor con JavaScript.
Inicio
Explorar
Ayuda
Iniciar sesión
chemicalcrux
/
macrovision
Seguir
1
Destacar
0
Fork
0
Código
Incidencias
5
Pull Requests
0
Lanzamientos
10
Wiki
Actividad
Explorar el Código
Fix an error when deleting a dragged entity
The viewer would try to call updateEntityElement, but the entity would be deleted, causing an error.
master
Fen Dweller
hace 5 años
padre
3109391d67
commit
37142c2db0
Se han
modificado 1 ficheros
con
3 adiciones
y
0 borrados
Dividir vista
Opciones de diferencias
Mostrar estadísticas
Descargar archivo de parche
Descargar archivo de diferencias
+3
-0
macrovision.js
+ 3
- 0
macrovision.js
Ver fichero
@@ -1167,6 +1167,9 @@ function removeEntity(element) {
if (selected == element) {
deselect();
}
if (clicked == element) {
clicked = null;
}
const option = document.querySelector("#options-selected-entity-" + element.dataset.key);
option.parentElement.removeChild(option);
Escribir
Vista previa
Cargando…
Cancelar
Guardar