diff options
| author | Jon Stevens <[email protected]> | 2012-06-18 19:25:54 -0700 |
|---|---|---|
| committer | Jon Stevens <[email protected]> | 2012-06-18 19:25:54 -0700 |
| commit | 6a974f9ff7962afc9aaf5510055e574d147a6c42 (patch) | |
| tree | 6abc813dc8e1f7fe64ea880afd1df129c8377ded /js | |
| parent | bae3cfd18343ce4909b26f03ee0008f0de1d2d46 (diff) | |
| download | bootstrap-6a974f9ff7962afc9aaf5510055e574d147a6c42.tar.xz bootstrap-6a974f9ff7962afc9aaf5510055e574d147a6c42.zip | |
enable the ability to destroy tooltips and popovers from elements. related to issue #3453
Diffstat (limited to 'js')
| -rw-r--r-- | js/bootstrap-popover.js | 6 | ||||
| -rw-r--r-- | js/bootstrap-tooltip.js | 6 |
2 files changed, 12 insertions, 0 deletions
diff --git a/js/bootstrap-popover.js b/js/bootstrap-popover.js index c6c1f8b47..456b74bdd 100644 --- a/js/bootstrap-popover.js +++ b/js/bootstrap-popover.js @@ -71,6 +71,12 @@ return this.$tip } + , destroy: function () { + var $e = this.$element + $e.off() + $e.removeData('popover') + } + }) diff --git a/js/bootstrap-tooltip.js b/js/bootstrap-tooltip.js index f5f9fad3f..93525b8bd 100644 --- a/js/bootstrap-tooltip.js +++ b/js/bootstrap-tooltip.js @@ -235,6 +235,12 @@ this[this.tip().hasClass('in') ? 'hide' : 'show']() } + , destroy: function () { + var $e = this.$element + $e.off() + $e.removeData('tooltip') + } + } |
