posted 13 years ago
I have some code similar to this:
The problem is that the custom event 'myCustomEvent' is getting triggered once for the element that is actually bound to it and once for each of its children. I am trying to implement a publish/subscribe model here where I trigger the custom event and whoever wants to can respond to it. What is the best practice for getting the event to trigger only for the element that was actually bound to it?
Thanks,
Rob