-
Notifications
You must be signed in to change notification settings - Fork 178
Home
millermedeiros edited this page Nov 27, 2010
·
12 revisions
A Signal is similar to a EventTarget/EventDispatcher or a pub/sub system, the main difference is that each event kind has it's own controller and doesn't rely on strings to call proper callbacks.
Another advantage is that you can pass arbitrary parameters to callbacks and it also have some convenience methods that aren't present on other implementations of the observer pattern.
This implementation is heavily inspired by Robert Penner's AS3-Signals but it has a different set of features, the main focus is for custom events and not replacing native DOM events.