Fix MessageBox bug which caused dialog to close on button press without invoking handler

This commit is contained in:
Alma Armas 2020-07-17 16:25:55 +00:00
parent e4787750fa
commit fafc3b4fb9

View file

@ -24,10 +24,10 @@ function MessageBox(title, body, buttons, callbacks) {
}; };
Reflect.apply(callbacks[callback], { Reflect.apply(callbacks[callback], {
closeDialog: __closeDialog() closeDialog: () => __closeDialog()
}, [e]); }, [e]);
__closeDialog(); __closeDialog();
}); });
}); });
} }