INNER CODE UNIT · JavaScript
detach
Corsinvest/cv4pve-admin · src/Corsinvest.ProxmoxVE.Admin.Core/wwwroot/js/cv4pve.js:46
function detach(dialog) {
const inst = _instances.get(dialog);
if (inst) {
inst.resizer?.dispose();
inst.ro?.disconnect();
inst.bar?.remove();
_instances.delete(dialog);
}
}
const observer = new MutationObserver(mutations => {
mutations.forEach(m => {
m.addedNodes.forEach(node => {
if (node.nodeType === 1) {
if (node.classList.contains('cv4pve-side-dialog-resizable')) attach(node);
node.querySelectorAll?.('.cv4pve-side-dialog-resizable').forEach(attach);
}
});