You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
var listener = {};
function listenerFunc() {
}
game.onResume.add(listenerFunc, listener);
console.log(game.onResume.getNumListeners()); // Should log 3
game.onResume.removeAll(listener);
console.log(game.onResume.getNumListeners()); // Should log 2, but logs 0 instead.
Simple to reproduce:
The problem seems to be in line 260 of Signal.js.
With this line removed, the function seems to work as intended with a context, although I expect the intended behavior was something more like:
The text was updated successfully, but these errors were encountered: