Skip to content

Feature request: destroy method for all JS plugins #6315

Closed

Description

@meleyal

Would be great if all the plugins had a destroy method that unbinds event listeners / removes el.data (see tooltip.destroy).

Otherwise there's no way to ensure they will be garbage collected in single page / long running apps.

Activity

  1. fat commented on Feb 8, 2013

    @fat
    Member

    not really necessary if you use jquery's remove element method – just need to make sure you unbind the data-api from the dom with .off('.data-api')

  2. locked and limited conversation to collaborators on Apr 23, 2015
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

    featureNew feature, or a change to how an existing one worksjsJavaScript or TypeScript sources and plugins

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions