Skip to content

Initialize new content loaded by ajax #2

Description

@Anubarak

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions