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

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

vowpalwabbit - Interpreting Vowpal Wabbit results: Why are some lines appended by "h"? -

Is there a way to convert an HTML page styled with Bootstrap CSS into email-compatible html? -