Bug 1331599 - script-generated patch to replace removeEventListener calls with the once option when possible, r=jaws.

This commit is contained in:
Florian Quèze
2017-01-25 07:01:52 +01:00
parent 69e05ad75e
commit 91f7a2ef3a
491 changed files with 1353 additions and 2307 deletions

View File

@@ -47,10 +47,9 @@ function promisePopupShown(popup) {
if (popup.state == "open") {
resolve();
} else {
popup.addEventListener("popupshown", function onPopupShown(event) {
popup.removeEventListener("popupshown", onPopupShown);
popup.addEventListener("popupshown", function(event) {
resolve();
});
}, {once: true});
}
});
}