Hello,
Bogdan Petr Pintican
1

Yes, but like I said, the code works fine as long as EventDispatcher is not a Singleton (like you illustrated in your code), or if PlayerModel doesn’t extend EventDispatcher in the first place.

The problem is that if you need EventDispatcher to be a Singleton, the prototype chain gets weird and playerController becomes an instance of PlayerModel, which makes no sense as the only connection between PlayerModel and PlayerController is that they both extend EventDispatcher (either directly or indirectly)