本網站在啟用 JavaScript 的情況下可以運作的更好。
首頁
探索
說明
登入
chemicalcrux
/
macrovision
關注
1
收藏
0
複製
0
程式碼
問題
5
合併請求
0
版本發佈
10
Wiki
活動
瀏覽代碼
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
5 年之前
父節點
3109391d67
當前提交
37142c2db0
共有
1 個檔案被更改
,包括
3 行新增
和
0 行删除
分割檢視
Diff Options
Show Stats
Download Patch File
Download Diff File
+3
-0
macrovision.js
+ 3
- 0
macrovision.js
查看文件
@@ -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);
Write
Preview
Loading…
取消
儲存