Closed lhansford closed 10 years ago
All items that are not currently shown are removed from the DOM and I guess that it's why they aren't working.
If you init List.js and then tries to add listeners with $('li').click()
or something, it wont work.
Okay, I figured that was what was happening. It might be cool to add an option to allow the user to run some code each time the page changes (don't know how possible that is though).
You have listObj.on('updated', function(listObj) { yaddda });
which is called everytime the list changes =)
That works perfectly, thanks!
I have a list that uses jquery click listeners on each item, but when I add pagination the click listeners for all items not on the first page disappear. Is there anyway to get the listeners working on all the items?