Skip to content

Don't remove Element on destroy() #26

@piranna

Description

@piranna

self._root.remove()

When calling destroy(), the Element where the graph is being applied is removed from the DOM. Since this element is not created and managed by p2p-graph but instead provided by us, it should be left untouched, as it's done at https://github.com/Novage/p2p-media-loader/blob/85adce9b0edbc00dfa073321d93a61590af3afc8/p2p-media-loader-demo/index.html#L1234-L1240

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