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