Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initialize new content loaded by ajax #2

Open
Anubarak opened this issue Sep 10, 2018 · 0 comments
Open

Initialize new content loaded by ajax #2

Anubarak opened this issue Sep 10, 2018 · 0 comments

Comments

@Anubarak
Copy link

Is it currently possible to initialize new popups dynamically loaded via ajax without creating a new instance?

When I do

<script type="text/javascript">
  var popbox = new Popbox({
        blur:true,
        overlay:true,
      });
</script>

again the plugin is initialized twice -> all event handlers will execute multiple times instead of just once so I need to unbind all of them.
I searched in the code but I wasn't able to spot something useful, do I need to fork it and include the feature on my own?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant