javascript - Document listener jQuery.each -



javascript - Document listener jQuery.each -

we have web app spits out elements server-side , through backbone -- , have simple jquery.each() statement flips through elements on page , adds/removes classes based on size of component. i'm calling within "init" function, it's not working elements not on page when loaded; within backbone scope.

i'd rather not re-call function in each backbone instance (in-case end adding more views render other items needed function) , wanted $(document).on() function work normal clicks, hovers, etc. haven't found examples on how create work jquery.each(), appreciate insight on how i'd go this. thanks!

mutation observers i'll go with.

javascript jquery backbone.js javascript-events

Comments

Popular posts from this blog

javascript - I need to update the text of a paragraph by inline edit -

javascript - THREE.js reposition vertices for RingGeometry -

assembly - What is the addressing mode for ld, add, and rjmp instructions? -