Skip to content
This repository was archived by the owner on Aug 21, 2019. It is now read-only.
This repository was archived by the owner on Aug 21, 2019. It is now read-only.

Events for custom smartzoom-element children get lost #34

@bocksebastian

Description

@bocksebastian

Events which are bound to child-elements of my smartzoom-element get lost after initialisation.
This is caused by the call of jQuery.remove() in line 94. It removes all assosiated data and events from the element and all the children.

So to improve the library for compatibility with other use cases it is recommended to use jQuery.detach() instead to keep all assosiated events and data after removing from DOM and appending in line 99.

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