Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
attached() {
UIUtils.dialogContainer = this.dialogContainer;
UIUtils.overlayContainer = this.overlayContainer;
UIUtils.taskbarContainer = this.taskbarContainer;
// Add browserAgent class to html element
document.documentElement.classList.add(window.browserAgent());
// Fire appready event
UIEvent.fireEvent('appready', this.element);
// Remove splash
if (document.querySelector('.ui-splash')) DOM.removeNode(document.querySelector('.ui-splash'));
}
// detached() { }
dispose: () => {
scroller.scrollCallbacks.delete(scrollCallback);
if (dropdownEl.parentElement === Container.instance.get(UIAppConfig).FloatingContainer) {
DOM.removeNode(dropdownEl);
}
else {
DOM.removeNode(dropdownEl.parentElement);
}
},
updatePosition: (newAnchorEl, newConfig = {}) => {
UIInternal.queueTask(() => DOM.removeNode(this.vmElement));
}
close() {
if (isFunction(this.beforeclose)) {
let ret = this.beforeclose();
if (ret instanceof Promise) ret.then(b => {
if (b) {
DOM.removeNode(this.element);
}
});
else if (ret !== false) {
DOM.removeNode(this.element);
}
}
else if (UIEvent.fireEvent('beforeclose', this.element) !== false) {
DOM.removeNode(this.element);
}
}
collapse() {
remove() {
DOM.removeNode(this.element);
UIEvent.fireEvent('close', this.element)
}
collapse() {
.then(canDeactivate => {
if (force || canDeactivate !== false) {
UIUtils.getDialogContainerSlot().remove(dialog['__view']);
dialog['__controller'].detached();
dialog['__controller'].unbind();
_.remove(this.windows, ['uniqId', dialog.uniqId]);
if (!dialog.modal) {
DOM.removeNode(dialog.taskButtonEl);
this.nextActive();
}
dialog.deactivate();
}
});
}
UIInternal.queueTask(() => DOM.removeNode(tab.element));
}
detached() {
this.__tether.destroy();
this.__obClick.dispose();
this.__obResize.dispose();
DOM.removeNode(this.__overflow);
}
setTimeout(() => {
if (this.closeCallback) this.closeCallback(b ? this.value : null);
DOM.removeNode(this.element);
}, 100);
}
dispose: function () {
scroller.scrollCallbacks.delete(scrollCallback);
if (dropdownEl.parentElement === Container.instance.get(UIAppConfig).FloatingContainer) {
DOM.removeNode(dropdownEl);
}
else {
DOM.removeNode(dropdownEl.parentElement);
}
},
updatePosition: function (newAnchorEl, newConfig) {