In the situation where there are multiple, identical components on the page each registering event listeners, the listeners are not instance specific.
For example, if there is a list of comment components and each component has a model listener for comment.update.success then whenever any model fires that event, every component hears it. This may be desired behavior in some cases, but not in others.
I think the default should be instance-specific, and global listeners should be added differently.
In the situation where there are multiple, identical components on the page each registering event listeners, the listeners are not instance specific.
For example, if there is a list of comment components and each component has a model listener for
comment.update.success
then whenever any model fires that event, every component hears it. This may be desired behavior in some cases, but not in others.I think the default should be instance-specific, and global listeners should be added differently.
Thoughts?