diff options
author | XhmikosR <xhmikosr@gmail.com> | 2019-03-11 18:13:30 +0300 |
---|---|---|
committer | XhmikosR <xhmikosr@gmail.com> | 2019-03-11 18:59:08 +0300 |
commit | ac67e04ce016406377595291ff1357eda63cc311 (patch) | |
tree | 4ad39e3b7079bdb0494ed827f90f49dda7b35ee2 /js/dist/tooltip.js | |
parent | c2b05dd7b5e6e66475dc89de1ca9466c92eb1e90 (diff) |
Dist.
Diffstat (limited to 'js/dist/tooltip.js')
-rw-r--r-- | js/dist/tooltip.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/js/dist/tooltip.js b/js/dist/tooltip.js index cbeb8d33c2..bf0cea322f 100644 --- a/js/dist/tooltip.js +++ b/js/dist/tooltip.js @@ -74,7 +74,8 @@ var MAX_UID = 1000000; var MILLISECONDS_MULTIPLIER = 1000; var TRANSITION_END = 'transitionend'; - var jQuery = window.jQuery; // Shoutout AngusCroll (https://goo.gl/pxwQGp) + var _window = window, + jQuery = _window.jQuery; // Shoutout AngusCroll (https://goo.gl/pxwQGp) var toType = function toType(obj) { return {}.toString.call(obj).match(/\s([a-z]+)/i)[1].toLowerCase(); @@ -388,7 +389,6 @@ SHOW: 'show' }; var Selector = { - TOOLTIP: '.tooltip', TOOLTIP_INNER: '.tooltip-inner', TOOLTIP_ARROW: '.tooltip-arrow' }; @@ -516,7 +516,7 @@ if (this.isWithContent() && this._isEnabled) { var showEvent = EventHandler.trigger(this.element, this.constructor.Event.SHOW); var shadowRoot = findShadowRoot(this.element); - var isInTheDom = shadowRoot !== null ? shadowRoot.contains(this.element) : this.element.ownerDocument.documentElement.contains(this.element); + var isInTheDom = shadowRoot === null ? this.element.ownerDocument.documentElement.contains(this.element) : shadowRoot.contains(this.element); if (showEvent.defaultPrevented || !isInTheDom) { return; |