Fix(action-confirm): check if event is defined before accessing its properties (#6063)

master
Saq Imtiaz 2021-09-22 14:43:02 +02:00 zatwierdzone przez GitHub
rodzic f6eadbd1c9
commit b965ae926b
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -59,7 +59,7 @@ Invoke the action associated with this widget
ConfirmWidget.prototype.invokeAction = function(triggeringWidget,event) {
var invokeActions = true,
handled = true,
win = event.event && event.event.view ? event.event.view : window;
win = event && event.event && event.event.view ? event.event.view : window;
if(this.prompt) {
invokeActions = win.confirm(this.message);
}