Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • B bootstrap
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 263
    • Issues 263
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 114
    • Merge requests 114
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Bootstrap
  • bootstrap
  • Issues
  • #3453
Closed
Open
Issue created May 11, 2012 by Administrator@rootContributor

Javascript plugins need deactivate/unbind functionality

Created by: martinstein

When building single-page applications (with Backbone, Knockout, ...), parts of the full HTML-page can get replaced with different content. In that case, you need to clear existing Javascript event handlers before removing the relevant elements from the DOM (otherwise there might be memory leaks).

I've had this problem with the tooltip-plugin, but I think it applies to most Bootstrap plugins. Ideally, there should be something along the lines of:

$('#example').tooltip('deactivate')

or

$('#example').tooltip('unbind')

For clarification: I'm not talking about temporarily disabling the plugin. This is about completely removing the changes/handlers that each plugin has applied before.

Assignee
Assign to
Time tracking