diff options
| author | Mark Otto <[email protected]> | 2017-03-28 09:31:32 -0700 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2017-03-28 09:31:32 -0700 |
| commit | cf7d3e11e0ca33d01246706899b77a1f4fc14733 (patch) | |
| tree | 5b5848021918868a1b08504e12518fe95e39a186 /docs/dist/js/bootstrap.js | |
| parent | 296c99020c0f7c8122b8cd1a7f93c0797f8ff8dd (diff) | |
| download | bootstrap-cf7d3e11e0ca33d01246706899b77a1f4fc14733.tar.xz bootstrap-cf7d3e11e0ca33d01246706899b77a1f4fc14733.zip | |
grunt
Diffstat (limited to 'docs/dist/js/bootstrap.js')
| -rw-r--r-- | docs/dist/js/bootstrap.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/docs/dist/js/bootstrap.js b/docs/dist/js/bootstrap.js index 550c9d674..363fcedcd 100644 --- a/docs/dist/js/bootstrap.js +++ b/docs/dist/js/bootstrap.js @@ -2794,6 +2794,7 @@ var Tooltip = function ($) { var JQUERY_NO_CONFLICT = $.fn[NAME]; var TRANSITION_DURATION = 150; var CLASS_PREFIX = 'bs-tether'; + var TETHER_PREFIX_REGEX = new RegExp('(^|\\s)' + CLASS_PREFIX + '\\S+', 'g'); var Default = { animation: true, @@ -3058,6 +3059,7 @@ var Tooltip = function ($) { tip.parentNode.removeChild(tip); } + _this23._cleanTipClass(); _this23.element.removeAttribute('aria-describedby'); $(_this23.element).trigger(_this23.constructor.Event.HIDDEN); _this23._isTransitioning = false; @@ -3148,6 +3150,14 @@ var Tooltip = function ($) { return AttachmentMap[placement.toUpperCase()]; }; + Tooltip.prototype._cleanTipClass = function _cleanTipClass() { + var $tip = $(this.getTipElement()); + var tabClass = $tip.attr('class').match(TETHER_PREFIX_REGEX); + if (tabClass !== null && tabClass.length > 0) { + $tip.removeClass(tabClass.join('')); + } + }; + Tooltip.prototype._setListeners = function _setListeners() { var _this24 = this; |
