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:
authorMark Otto <markdotto@gmail.com>2016-10-27 19:51:22 +0300
committerMark Otto <markdotto@gmail.com>2016-10-27 19:51:22 +0300
commit9dbfc90eae7b1eda2b0e0b501a7e223d0cce688c (patch)
tree12614406d4259c56cadf1c3f46b21ab93c67c551 /js/dist/tooltip.js
parenta26080c04723e23da352e8115a108130725faff2 (diff)
grunt
Diffstat (limited to 'js/dist/tooltip.js')
-rw-r--r--js/dist/tooltip.js22
1 files changed, 11 insertions, 11 deletions
diff --git a/js/dist/tooltip.js b/js/dist/tooltip.js
index 546425be1f..25011aff3d 100644
--- a/js/dist/tooltip.js
+++ b/js/dist/tooltip.js
@@ -69,7 +69,7 @@ var Tooltip = function ($) {
};
var HoverState = {
- IN: 'in',
+ ACTIVE: 'active',
OUT: 'out'
};
@@ -88,7 +88,7 @@ var Tooltip = function ($) {
var ClassName = {
FADE: 'fade',
- IN: 'in'
+ ACTIVE: 'active'
};
var Selector = {
@@ -168,7 +168,7 @@ var Tooltip = function ($) {
}
} else {
- if ($(this.getTipElement()).hasClass(ClassName.IN)) {
+ if ($(this.getTipElement()).hasClass(ClassName.ACTIVE)) {
this._leave(null, this);
return;
}
@@ -249,7 +249,7 @@ var Tooltip = function ($) {
Util.reflow(tip);
this._tether.position();
- $(tip).addClass(ClassName.IN);
+ $(tip).addClass(ClassName.ACTIVE);
var complete = function complete() {
var prevHoverState = _this._hoverState;
@@ -277,7 +277,7 @@ var Tooltip = function ($) {
var tip = this.getTipElement();
var hideEvent = $.Event(this.constructor.Event.HIDE);
var complete = function complete() {
- if (_this2._hoverState !== HoverState.IN && tip.parentNode) {
+ if (_this2._hoverState !== HoverState.ACTIVE && tip.parentNode) {
tip.parentNode.removeChild(tip);
}
@@ -296,7 +296,7 @@ var Tooltip = function ($) {
return;
}
- $(tip).removeClass(ClassName.IN);
+ $(tip).removeClass(ClassName.ACTIVE);
if (Util.supportsTransitionEnd() && $(this.tip).hasClass(ClassName.FADE)) {
@@ -323,7 +323,7 @@ var Tooltip = function ($) {
this.setElementContent($tip.find(Selector.TOOLTIP_INNER), this.getTitle());
- $tip.removeClass(ClassName.FADE).removeClass(ClassName.IN);
+ $tip.removeClass(ClassName.FADE).removeClass(ClassName.ACTIVE);
this.cleanupTether();
};
@@ -414,14 +414,14 @@ var Tooltip = function ($) {
context._activeTrigger[event.type === 'focusin' ? Trigger.FOCUS : Trigger.HOVER] = true;
}
- if ($(context.getTipElement()).hasClass(ClassName.IN) || context._hoverState === HoverState.IN) {
- context._hoverState = HoverState.IN;
+ if ($(context.getTipElement()).hasClass(ClassName.ACTIVE) || context._hoverState === HoverState.ACTIVE) {
+ context._hoverState = HoverState.ACTIVE;
return;
}
clearTimeout(context._timeout);
- context._hoverState = HoverState.IN;
+ context._hoverState = HoverState.ACTIVE;
if (!context.config.delay || !context.config.delay.show) {
context.show();
@@ -429,7 +429,7 @@ var Tooltip = function ($) {
}
context._timeout = setTimeout(function () {
- if (context._hoverState === HoverState.IN) {
+ if (context._hoverState === HoverState.ACTIVE) {
context.show();
}
}, context.config.delay.show);