JavaScript Publisher

This is a basic and humorous illustration of the Publish/Subscribe model known as the Observer Pattern written with my JavaScript Publisher Class (1.65k). Of course there is Minified version (0.77k) as well.

The top set of newspaper vendors represents the Publishers. The bottom set of folks which includes Ken, Chun Li, and Ryu are respectively news fanatics (they love to read). They are the Subscribers. Directly beneath each subscriber is a list of newspapers they are currently reading (otherwise known as their subscriptions).

Feel free to subscribe or unsubscribe from any members subscription set; and then deliver some papers.
Go ahead, have a play.

Publishers

N.Y. Times

↓ Deliver! ↓
S.F. Chronicle

↓ Deliver! ↓
Austin Herald

↓ Deliver! ↓

Subscribers

Ken

Subscribes to...

  • x
  • x
  • x

Chun Li

Subscribes to...

  • x
  • x
  • x

Ryu

Subscribes to...

  • x
  • x
  • x

"Publisher" is under Creative Commons 2-5. For Cross-browser compatibility, Sugar Arrays is a dependency.