This solves most of my problems and I can finally remove so much bad code. Thank you!
Milkyway
11

Today I tried to use your solution but I guess I’m missing something.

I downloaded your github-code and added it to my project. But when I try to use this.publish(‘eventname’, data), I get an uncaught TypeError:

Uncaught TypeError: Cannot read property ‘fireEvent’ of undefined