> Event subscriber:
> $(subscriber_element).bind("myEvent", function() {
>     alert("I received an event without subscribing!");
> });
>
> Event generator:
>
> $(*).trigger("myEvent");
>
> I am concerned though about the performance of $(*).

Couldn't you just $(document).bind("myEvent", ...) for them all and
then trigger the one document event? That would probably be the
fastest way.

Reply via email to