Best Practices For Communication Between Widgets

Best Practices For Communication Between Widgets

I have just started developing custom UI widgets and am noodling with the best method for handling interaction between them.

Right now I am thinking about using bind & trigger with custom events. 

Each widget would be set up to "listen" and/or "speak" custom events. I like this approach because the widgets are loosely coupled but I am not sure if this is the best way.

I published a quick blog post detailing the above with a code example:


Thoughts? Suggestions?