1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-09-25 21:09:06 +02:00

namespace the events for popover/tooltip so that they can be cleanly removed. issue #3880

This commit is contained in:
Jon Stevens
2012-07-16 16:01:11 -07:00
parent 40ab928315
commit 2ee9b2717b
5 changed files with 26 additions and 8 deletions

View File

@@ -72,7 +72,7 @@
}
, destroy: function () {
this.$element.off().removeData('popover')
this.$element.off(this.options.ns).removeData('popover')
}
})
@@ -97,6 +97,7 @@
placement: 'right'
, content: ''
, template: '<div class="popover"><div class="arrow"></div><div class="popover-inner"><h3 class="popover-title"></h3><div class="popover-content"><p></p></div></div></div>'
, ns: '.popover'
})
}(window.jQuery);