infiniteScroll create


#1

Hello to all,
After my list is ends then I destroy the infinite scroll.
Now I want to re-enable the infinite scroll and I use the app.infiniteScroll.create.
But I want to enabled it only when the infiniteScroll isn’t enabled,
so how I can see if the infinite scroll event listener is added or not?

Thank you


#2

Not way to detect is it attached or not, you can just do

app.infiniteScroll.destroy
app.infiniteScroll.create

and even it was attached you just readd it


#3

Ok Thank you for your quick answer !