2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-06-08 17:22:31 +03:00

enable the ability to destroy tooltips and popovers from elements. related to issue #3453

This commit is contained in:
Jon Stevens
2012-06-18 19:25:54 -07:00
parent bae3cfd183
commit 6a974f9ff7
3 changed files with 19 additions and 1 deletions
+6
View File
@@ -235,6 +235,12 @@
this[this.tip().hasClass('in') ? 'hide' : 'show']()
}
, destroy: function () {
var $e = this.$element
$e.off()
$e.removeData('tooltip')
}
}