Singleton Theory with javascript and prototype

2
Feb
0

I was searching for a way in javascript to handle classes dispatching events and listening for events. Generally javascript only has event methods for elements and not objects. Then I stumbbled onto