Skip to content

destroy & re-initialize, ._init is not a function #807

@nusoft

Description

@nusoft

Hi, my website shows photos like this CodePen, but with photos from a remote source: https://codepen.io/desandro/pen/eRRQVo

Now I would like to add a button which will 'refresh' the InfiniteScroll instance, to show newly added photos from the remote source. I tried with $container.infiniteScroll('destroy') and reinitializing InfiniteScroll, but that gives an error Uncaught TypeError: o._init is not a function

Any ideas? Thanks in advance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions