Tuesday, 17 September 2013

Reversed Pub/Sub behavior in jQuery

Reversed Pub/Sub behavior in jQuery

I'm using the jQuery Tiny Pub/Sub plugin for some loose coupling. The
current behavior is the following:
Publishing foo triggers foo.bar
But publishing foo.bar doesn't triggers foo
The behavior I want is pretty much the reversed way:
Publishing foo.bar triggers foo
But publishing foo doesn't triggers foo.bar
Is there a plugin doing that or a way to get jQuery Tiny Pub/Sub working
this way?

No comments:

Post a Comment