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

@@ -213,10 +213,9 @@ function onFocus(window) {
resolve(window);
}
else {
window.addEventListener("focus", function focusListener() {
window.removeEventListener("focus", focusListener, true);
window.addEventListener("focus", function() {
resolve(window);
}, true);
}, {capture: true, once: true});
}
return promise;