7 ms·
I've being using this pattern since day one with Backbone.js. If you want to avoid spaghetti code you need to have a central mediator that will take care of the
by shinuza 14y ago
I've being using this pattern since day one with Backbone.js. If you want to avoid spaghetti code you need to have a central mediator that will take care of the communication between your modules.
It's also easier to debug if all your events business happens in one place.