Y
Hacker News
new
|
ask
|
show
|
jobs
by
coderzach
4129 days ago
Using event delegation makes that a non issue.
1 comments
nitwit005
4128 days ago
Sort of. You'd have to listen at the top level of wherever you're using this, so you'll have to write your own mini event library to figure out which component got clicked on, and grab any associated data.
link