Do Event Listeners take space in DOM?
Case: I have 5 containers inside vbox layout in a parent container. I attach listeners for tap event on each of the 5 child containers. Another way proposed is to add one event listener on the parent container, because apparently it lightens the DOM.
- Do Event Listeners take space in DOM?
- If I put the event listener on the parent container only, how do I know which child container was clicked?
Suggestion For Second Question?
Thanks for the answer. Can you suggest anything for the second question also?