infiniteScroll create


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


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


and even it was attached you just readd it


Ok Thank you for your quick answer !