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:
3
js/bootstrap-popover.js
vendored
3
js/bootstrap-popover.js
vendored
@@ -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);
|
Reference in New Issue
Block a user