sign-view js let popupListeners let obj onPopupShown listener popupLis

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
// sign-view.js
let popupListeners = [];
let obj = {
//...
onPopupShown(listener) {
popupListeners.push(listener);
},
showPopup(popupName) {
this.show(popupForm);
popupListeners.forEach(listener => listener(popupName));
},
//...
}
//...