This fix solves the problem with execution of listeners (as below)
this.addEventListener("aftershow", function run() {
console.log("1st listener!")
});
this.addEventListener("aftershow", function run2() {
console.log("2nd listener!")
console.log("breaking listeners chain...")
self.removeEventListener("aftershow", run2);
});
this.addEventListener("aftershow", function run3() {
console.log("3rd listener misssed now, will be started only at the next 'aftershow'")
});
this.addEventListener("aftershow", function run4() {
console.log("4th listener!")
});
This fix solves the problem with execution of listeners (as below)