Currently I'm playing around with Backbone/Marionette (though question is more general), and I have a lot of code that "sending messages" all over the application. Just as an example, something like this:
vent.on("search:start", function() {...});
vent.trigger("search:start");
But I don't have any good way to track down (document) which messages/calls are available within an application.
So my question is: What is a good way to document this (sub/pub)?
I would assume (though I didn't find one) there might be a tool that will allow you to add comments (Javadoc style), and it will generate something more or less reasonable out of it.