1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-09 15:16:51 +02:00
This commit is contained in:
Mark Otto
2016-11-29 21:37:00 -08:00
parent 535fec93cf
commit 59dc3e174d
26 changed files with 36 additions and 73 deletions

5
js/dist/tooltip.js vendored
View File

@@ -187,6 +187,7 @@ var Tooltip = function ($) {
$.removeData(this.element, this.constructor.DATA_KEY);
$(this.element).off(this.constructor.EVENT_KEY);
$(this.element).closest('.modal').off('hide.bs.modal');
if (this.tip) {
$(this.tip).remove();
@@ -393,6 +394,10 @@ var Tooltip = function ($) {
return _this3._leave(event);
});
}
$(_this3.element).closest('.modal').on('hide.bs.modal', function () {
return _this3.hide();
});
});
if (this.config.selector) {