riot-js

Open full view…

Broadcasting

valan
Thu, 15 Jan 2015 14:12:17 GMT

Developers often meet with the need to communicate btw loosely coupled modules w/o any middleware controllers. I would suggest to add standard riot.broadcast(channel, args) and riot.channel(channel).on(args)/one/off methods to the lib instead of forcing others to add bicycles with $(document).trigger/on... )). What do you think? Thanks.