Note that there are some explanatory texts on larger screens.

plurals
  1. POjQuery plugin for Event Driven Architecture?
    text
    copied!<p>Are there any Event Driven Architecture jQuery plugins? </p> <h1>Step 1: Subscribing</h1> <p><img src="https://farm5.static.flickr.com/4051/4667387638_e3078f4c2c_b.jpg" alt="alt text"><br/> The subscribers subscribe to the event handler in the middle, and pass in a callback method, as well as the name of the event they are listening for...</p> <p>i.e. The two green subscribers will be listening for p0 events. And the blue subscriber will be listening for p1 events.</p> <hr> <h1>Step 2: The p0 event is fired by another component to the Event Handler</h1> <p><img src="https://farm5.static.flickr.com/4018/4666766899_301986d0a9_b.jpg" alt="alt text"></p> <ol> <li>A p0 event is fired to the Event Handler</li> <li>The event handler notifies it's subscribers of the event, calling the callback methods they specified when they subscribed in <strong>Step 1: Subscribing.</strong></li> </ol> <p>Note that the blue subscriber is not notified because it was not listening for p0 events.</p> <hr> <h1>Step 3: The p1 event is fired a component to the Event Handler</h1> <p><img src="https://farm5.static.flickr.com/4039/4667387678_6a7bb76dee_b.jpg" alt="alt text"></p> <p>The p1 event is fired by another component</p> <p>Just as before except that now the blue subscriber receives the event through its callback and the other two green subscribers do not receive the event.</p> <p><a href="http://www.flickr.com/photos/leeand00/4667387678/" rel="nofollow noreferrer">Images by leeand00, on Flickr</a></p> <p>I can't seem to find one, but my guess is that they just call it something else in Javascript/jquery</p> <p>Also is there a name for this pattern? Because it isn't just a basic publisher/subscriber, it has to be called something else I would think.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload