Threaded View

  1. #1
    Sencha User
    Join Date
    Apr 2012
    Posts
    34
    Vote Rating
    1
    Dbms is on a distinguished road

      0  

    Default Answered: Do Event Listeners take space in DOM?

    Answered: Do Event Listeners take space in DOM?


    Hi,

    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.

    Questions:
    1. Do Event Listeners take space in DOM?
    2. If I put the event listener on the parent container only, how do I know which child container was clicked?

  2. Event listeners do not take up space in the DOM. They will take up some space in memory. If you can use just 1 listener then you will get a small performance increase over using 5 listeners.

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar