301 - ShepHearding Your vEwe

In previous examples we have talked covered how to enrich each vEwe through inehritance of prototypes. Now we will cover how to make these vEwes work together.

It stands to reason that at some point an application may require vEwes to communicate. vEwe's are able to do so quite painlessly via a "ShepHeard". The ShepHeard is an object (not in the DOM) that vEwes can "publish" messages to. Other vEwes can then "subscribe" to these messages directly or via their "events".

Toggle the boxes.
Ta-da!
What's under the box?
Ta-da!
What's under the box?