Remove unused returnValue

This commit is contained in:
the-djmaze 2023-10-08 12:30:38 +02:00
parent 04e2869953
commit 8841464f84

View file

@ -59,13 +59,11 @@ const
vmDom.before(vmDom.backdrop = createElement('div',{class:'dialog-backdrop'})); vmDom.before(vmDom.backdrop = createElement('div',{class:'dialog-backdrop'}));
vmDom.setAttribute('open',''); vmDom.setAttribute('open','');
vmDom.open = true; vmDom.open = true;
vmDom.returnValue = null;
vmDom.backdrop.hidden = false; vmDom.backdrop.hidden = false;
}; };
vmDom.close = v => { vmDom.close = () => {
// if (vmDom.dispatchEvent(new CustomEvent('cancel', {cancelable:true}))) { // if (vmDom.dispatchEvent(new CustomEvent('cancel', {cancelable:true}))) {
vmDom.backdrop.hidden = true; vmDom.backdrop.hidden = true;
vmDom.returnValue = v;
vmDom.removeAttribute('open', null); vmDom.removeAttribute('open', null);
vmDom.open = false; vmDom.open = false;
// vmDom.dispatchEvent(new CustomEvent('close')); // vmDom.dispatchEvent(new CustomEvent('close'));