Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'js/dist/tooltip.js')
-rw-r--r--js/dist/tooltip.js14
1 files changed, 8 insertions, 6 deletions
diff --git a/js/dist/tooltip.js b/js/dist/tooltip.js
index c4fed4ae96..e8efaf7131 100644
--- a/js/dist/tooltip.js
+++ b/js/dist/tooltip.js
@@ -391,8 +391,7 @@
SHOW: 'show'
};
var Selector = {
- TOOLTIP_INNER: '.tooltip-inner',
- TOOLTIP_ARROW: '.tooltip-arrow'
+ TOOLTIP_INNER: '.tooltip-inner'
};
var Trigger = {
HOVER: 'hover',
@@ -487,7 +486,7 @@
clearTimeout(this._timeout);
Data.removeData(this.element, this.constructor.DATA_KEY);
EventHandler.off(this.element, this.constructor.EVENT_KEY);
- EventHandler.off(SelectorEngine.closest(this.element, '.modal'), 'hide.bs.modal');
+ EventHandler.off(SelectorEngine.closest(this.element, '.modal'), 'hide.bs.modal', this._hideModalHandler);
if (this.tip) {
this.tip.parentNode.removeChild(this.tip);
@@ -557,7 +556,7 @@
behavior: this.config.fallbackPlacement
},
arrow: {
- element: Selector.TOOLTIP_ARROW
+ element: "." + this.constructor.NAME + "-arrow"
},
preventOverflow: {
boundariesElement: this.config.boundary
@@ -793,11 +792,14 @@
});
}
});
- EventHandler.on(SelectorEngine.closest(this.element, '.modal'), 'hide.bs.modal', function () {
+
+ this._hideModalHandler = function () {
if (_this4.element) {
_this4.hide();
}
- });
+ };
+
+ EventHandler.on(SelectorEngine.closest(this.element, '.modal'), 'hide.bs.modal', this._hideModalHandler);
if (this.config.selector) {
this.config = _objectSpread({}, this.config, {