Prevent JS error after closing help-popup
This commit is contained in:
parent
0cd88873e1
commit
f9c035082f
|
@ -43,11 +43,13 @@ function messageBox({
|
||||||
}
|
}
|
||||||
|
|
||||||
function resolveWith(value) {
|
function resolveWith(value) {
|
||||||
|
if (messageBox.resolve) {
|
||||||
unbindGlobalListeners();
|
unbindGlobalListeners();
|
||||||
setTimeout(messageBox.resolve, 0, value);
|
setTimeout(messageBox.resolve, 0, value);
|
||||||
animateElement(messageBox.element, {className: 'fadeout', remove: true})
|
animateElement(messageBox.element, {className: 'fadeout', remove: true})
|
||||||
.then(removeSelf);
|
.then(removeSelf);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
function createElement() {
|
function createElement() {
|
||||||
if (messageBox.element) {
|
if (messageBox.element) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user