mirror of
https://github.com/twbs/bootstrap.git
synced 2022-11-09 12:25:43 -05:00
grunt
This commit is contained in:
parent
e3a569f4f6
commit
3ec37d4a4d
24 changed files with 177 additions and 56 deletions
2
dist/css/bootstrap-flex.css.map
vendored
2
dist/css/bootstrap-flex.css.map
vendored
File diff suppressed because one or more lines are too long
2
dist/css/bootstrap-flex.min.css.map
vendored
2
dist/css/bootstrap-flex.min.css.map
vendored
File diff suppressed because one or more lines are too long
2
dist/css/bootstrap-reboot.css.map
vendored
2
dist/css/bootstrap-reboot.css.map
vendored
File diff suppressed because one or more lines are too long
2
dist/css/bootstrap-reboot.min.css.map
vendored
2
dist/css/bootstrap-reboot.min.css.map
vendored
|
@ -1 +1 @@
|
||||||
{"version":3,"sources":["../../scss/_normalize.scss","bootstrap-reboot.css","../../scss/_reboot.scss","../../scss/_variables.scss","../../scss/mixins/_tab-focus.scss"],"names":[],"mappings":"4EAYA,KACE,YAAA,WACA,YAAA,KACA,qBAAA,KACA,yBAAA,KAUF,KACE,OAAA,EAOF,QAAA,MAAA,OAAA,OAAA,IAAA,QAME,QAAA,MAQF,GACE,UAAA,IACA,OAAA,MAAA,EAWF,WAAA,OAAA,KAGE,QAAA,MAOF,OACE,OAAA,IAAA,KAQF,GACE,mBAAA,YAAA,WAAA,YACA,OAAA,EACA,SAAA,QAQF,IACE,YAAA,UAAA,UACA,UAAA,IAWF,EACE,iBAAA,YACA,6BAAA,QAQF,SAAA,QAEE,cAAA,EAQF,YACE,cAAA,KACA,gBAAA,UACA,gBAAA,UAAA,OAOF,EAAA,OAEE,YAAA,QAOF,EAAA,OAEE,YAAA,OAQF,KAAA,IAAA,KAGE,YAAA,UAAA,UACA,UAAA,IAOF,IACE,WAAA,OAOF,KACE,iBAAA,KACA,MAAA,KAOF,MACE,UAAA,IAQF,IAAA,IAEE,UAAA,IACA,YAAA,EACA,SAAA,SACA,eAAA,SAGF,IACE,OAAA,OAGF,IACE,IAAA,MAUF,MAAA,MAEE,QAAA,aAOF,sB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A,GAGE,WAAA,EACA,cAAA,KAGF,MAAA,MAAA,MAAA,MAIE,cAAA,EAGF,GACE,YAAA,IAGF,GACE,cAAA,MACA,YAAA,EAGF,WACE,OAAA,EAAA,EAAA,KAQF,EACE,MAAA,QACA,gBAAA,KAFF,QAAS,QAKL,MAAA,QACA,gBAAA,UANJ,QEzJE,QAAA,IAAA,KAAA,yBACA,eAAA,KF4KF,8BACE,MAAA,QACA,gBAAA,KAFF,oCAAqC,oCAKjC,MAAA,QACA,gBAAA,KANJ,oCAUI,QAAA,EASJ,IAEE,WAAA,EAEA,cAAA,KAEA,SAAA,KAQF,OAGE,OAAA,EAAA,EAAA,KAQF,IAGE,eAAA,OD2IF,cC9HE,OAAA,QAcF,cAAA,EAAA,KAAA,OAAA,MAAA,MAAA,OAAA,QAAA,SASE,iBAAA,aAAA,aAAA,aAQF,MAEE,gBAAA,SAEA,iBAAA,YAGF,QACE,YAAA,OACA,eAAA,OACA,MAAA,QACA,WAAA,KACA,aAAA,OAGF,GAEE,WAAA,KAQF,MAEE,QAAA,aACA,cAAA,MAOF,aACE,QAAA,IAAA,OACA,QAAA,IAAA,KAAA,yBAGF,OAAA,MAAA,OAAA,SAME,YAAA,QAGF,8BAAA,2BAMI,OAAA,YAKJ,iBAAA,iBAAA,2BAAA,kBASE,mBAAA,QAGF,SAEE,OAAA,SAGF,SAIE,UAAA,EAEA,QAAA,EACA,OAAA,EACA,OAAA,EAGF,OAEE,QAAA,MACA,MAAA,KACA,QAAA,EACA,cAAA,MACA,UAAA,OACA,YAAA,QAGF,mBAKE,mBAAA,KAIF,OACE,QAAA,aD6EF,SCrEE,QAAA"}
|
{"version":3,"sources":["../../scss/_normalize.scss","bootstrap-reboot.css","../../scss/_reboot.scss","../../scss/_variables.scss","../../scss/mixins/_tab-focus.scss"],"names":[],"mappings":"4EAYA,KACE,YAAA,WACA,YAAA,KACA,qBAAA,KACA,yBAAA,KAUF,KACE,OAAA,EAOF,QAAA,MAAA,OAAA,OAAA,IAA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OF,aACE,QAAA,IAAA,OACA,QAAA,IAAA,KAAA,yBAGF,OAAA,MAAA,OAAA,SAME,YAAA,QAGF,8BAAA,2BAMI,OAAA,YAKJ,iBAAA,iBAAA,2BAAA,kBASE,mBAAA,QAGF,SAEE,OAAA,SAGF,SAME,UAAA,EAEA,QAAA,EACA,OAAA,EACA,OAAA,EAGF,OAEE,QAAA,MACA,MAAA,KACA,QAAA,EACA,cAAA,MACA,UAAA,OACA,YAAA,QAGF,mBAKE,mBAAA,KAIF,OACE,QAAA,aD0EF,SClEE,QAAA"}
|
2
dist/css/bootstrap.css.map
vendored
2
dist/css/bootstrap.css.map
vendored
File diff suppressed because one or more lines are too long
2
dist/css/bootstrap.min.css.map
vendored
2
dist/css/bootstrap.min.css.map
vendored
File diff suppressed because one or more lines are too long
|
@ -624,9 +624,10 @@ var Carousel = function ($) {
|
||||||
// public
|
// public
|
||||||
|
|
||||||
Carousel.prototype.next = function next() {
|
Carousel.prototype.next = function next() {
|
||||||
if (!this._isSliding) {
|
if (this._isSliding) {
|
||||||
this._slide(Direction.NEXT);
|
throw new Error('Carousel is sliding');
|
||||||
}
|
}
|
||||||
|
this._slide(Direction.NEXT);
|
||||||
};
|
};
|
||||||
|
|
||||||
Carousel.prototype.nextWhenVisible = function nextWhenVisible() {
|
Carousel.prototype.nextWhenVisible = function nextWhenVisible() {
|
||||||
|
@ -637,9 +638,10 @@ var Carousel = function ($) {
|
||||||
};
|
};
|
||||||
|
|
||||||
Carousel.prototype.prev = function prev() {
|
Carousel.prototype.prev = function prev() {
|
||||||
if (!this._isSliding) {
|
if (this._isSliding) {
|
||||||
this._slide(Direction.PREVIOUS);
|
throw new Error('Carousel is sliding');
|
||||||
}
|
}
|
||||||
|
this._slide(Direction.PREVIOUS);
|
||||||
};
|
};
|
||||||
|
|
||||||
Carousel.prototype.pause = function pause(event) {
|
Carousel.prototype.pause = function pause(event) {
|
||||||
|
@ -1080,7 +1082,11 @@ var Collapse = function ($) {
|
||||||
Collapse.prototype.show = function show() {
|
Collapse.prototype.show = function show() {
|
||||||
var _this6 = this;
|
var _this6 = this;
|
||||||
|
|
||||||
if (this._isTransitioning || $(this._element).hasClass(ClassName.ACTIVE)) {
|
if (this._isTransitioning) {
|
||||||
|
throw new Error('Collapse is transitioning');
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($(this._element).hasClass(ClassName.ACTIVE)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1153,7 +1159,11 @@ var Collapse = function ($) {
|
||||||
Collapse.prototype.hide = function hide() {
|
Collapse.prototype.hide = function hide() {
|
||||||
var _this7 = this;
|
var _this7 = this;
|
||||||
|
|
||||||
if (this._isTransitioning || !$(this._element).hasClass(ClassName.ACTIVE)) {
|
if (this._isTransitioning) {
|
||||||
|
throw new Error('Collapse is transitioning');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!$(this._element).hasClass(ClassName.ACTIVE)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1692,6 +1702,7 @@ var Modal = function ($) {
|
||||||
this._isShown = false;
|
this._isShown = false;
|
||||||
this._isBodyOverflowing = false;
|
this._isBodyOverflowing = false;
|
||||||
this._ignoreBackdropClick = false;
|
this._ignoreBackdropClick = false;
|
||||||
|
this._isTransitioning = false;
|
||||||
this._originalBodyPadding = 0;
|
this._originalBodyPadding = 0;
|
||||||
this._scrollbarWidth = 0;
|
this._scrollbarWidth = 0;
|
||||||
}
|
}
|
||||||
|
@ -1707,6 +1718,13 @@ var Modal = function ($) {
|
||||||
Modal.prototype.show = function show(relatedTarget) {
|
Modal.prototype.show = function show(relatedTarget) {
|
||||||
var _this9 = this;
|
var _this9 = this;
|
||||||
|
|
||||||
|
if (this._isTransitioning) {
|
||||||
|
throw new Error('Modal is transitioning');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (Util.supportsTransitionEnd() && $(this._element).hasClass(ClassName.FADE)) {
|
||||||
|
this._isTransitioning = true;
|
||||||
|
}
|
||||||
var showEvent = $.Event(Event.SHOW, {
|
var showEvent = $.Event(Event.SHOW, {
|
||||||
relatedTarget: relatedTarget
|
relatedTarget: relatedTarget
|
||||||
});
|
});
|
||||||
|
@ -1751,8 +1769,16 @@ var Modal = function ($) {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
}
|
}
|
||||||
|
|
||||||
var hideEvent = $.Event(Event.HIDE);
|
if (this._isTransitioning) {
|
||||||
|
throw new Error('Modal is transitioning');
|
||||||
|
}
|
||||||
|
|
||||||
|
var transition = Util.supportsTransitionEnd() && $(this._element).hasClass(ClassName.FADE);
|
||||||
|
if (transition) {
|
||||||
|
this._isTransitioning = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
var hideEvent = $.Event(Event.HIDE);
|
||||||
$(this._element).trigger(hideEvent);
|
$(this._element).trigger(hideEvent);
|
||||||
|
|
||||||
if (!this._isShown || hideEvent.isDefaultPrevented()) {
|
if (!this._isShown || hideEvent.isDefaultPrevented()) {
|
||||||
|
@ -1771,8 +1797,7 @@ var Modal = function ($) {
|
||||||
$(this._element).off(Event.CLICK_DISMISS);
|
$(this._element).off(Event.CLICK_DISMISS);
|
||||||
$(this._dialog).off(Event.MOUSEDOWN_DISMISS);
|
$(this._dialog).off(Event.MOUSEDOWN_DISMISS);
|
||||||
|
|
||||||
if (Util.supportsTransitionEnd() && $(this._element).hasClass(ClassName.FADE)) {
|
if (transition) {
|
||||||
|
|
||||||
$(this._element).one(Util.TRANSITION_END, function (event) {
|
$(this._element).one(Util.TRANSITION_END, function (event) {
|
||||||
return _this10._hideModal(event);
|
return _this10._hideModal(event);
|
||||||
}).emulateTransitionEnd(TRANSITION_DURATION);
|
}).emulateTransitionEnd(TRANSITION_DURATION);
|
||||||
|
@ -1837,6 +1862,7 @@ var Modal = function ($) {
|
||||||
if (_this11._config.focus) {
|
if (_this11._config.focus) {
|
||||||
_this11._element.focus();
|
_this11._element.focus();
|
||||||
}
|
}
|
||||||
|
_this11._isTransitioning = false;
|
||||||
$(_this11._element).trigger(shownEvent);
|
$(_this11._element).trigger(shownEvent);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -1888,7 +1914,8 @@ var Modal = function ($) {
|
||||||
var _this15 = this;
|
var _this15 = this;
|
||||||
|
|
||||||
this._element.style.display = 'none';
|
this._element.style.display = 'none';
|
||||||
this._element.setAttribute('aria-hidden', true);
|
this._element.setAttribute('aria-hidden', 'true');
|
||||||
|
this._isTransitioning = false;
|
||||||
this._showBackdrop(function () {
|
this._showBackdrop(function () {
|
||||||
$(document.body).removeClass(ClassName.OPEN);
|
$(document.body).removeClass(ClassName.OPEN);
|
||||||
_this15._resetAdjustments();
|
_this15._resetAdjustments();
|
||||||
|
@ -2807,6 +2834,7 @@ var Tooltip = function ($) {
|
||||||
this._timeout = 0;
|
this._timeout = 0;
|
||||||
this._hoverState = '';
|
this._hoverState = '';
|
||||||
this._activeTrigger = {};
|
this._activeTrigger = {};
|
||||||
|
this._isTransitioning = false;
|
||||||
this._tether = null;
|
this._tether = null;
|
||||||
|
|
||||||
// protected
|
// protected
|
||||||
|
@ -2869,6 +2897,7 @@ var Tooltip = function ($) {
|
||||||
$.removeData(this.element, this.constructor.DATA_KEY);
|
$.removeData(this.element, this.constructor.DATA_KEY);
|
||||||
|
|
||||||
$(this.element).off(this.constructor.EVENT_KEY);
|
$(this.element).off(this.constructor.EVENT_KEY);
|
||||||
|
$(this.element).closest('.modal').off('hide.bs.modal');
|
||||||
|
|
||||||
if (this.tip) {
|
if (this.tip) {
|
||||||
$(this.tip).remove();
|
$(this.tip).remove();
|
||||||
|
@ -2891,9 +2920,12 @@ var Tooltip = function ($) {
|
||||||
if ($(this.element).css('display') === 'none') {
|
if ($(this.element).css('display') === 'none') {
|
||||||
throw new Error('Please use show on visible elements');
|
throw new Error('Please use show on visible elements');
|
||||||
}
|
}
|
||||||
var showEvent = $.Event(this.constructor.Event.SHOW);
|
|
||||||
|
|
||||||
|
var showEvent = $.Event(this.constructor.Event.SHOW);
|
||||||
if (this.isWithContent() && this._isEnabled) {
|
if (this.isWithContent() && this._isEnabled) {
|
||||||
|
if (this._isTransitioning) {
|
||||||
|
throw new Error('Tooltip is transitioning');
|
||||||
|
}
|
||||||
$(this.element).trigger(showEvent);
|
$(this.element).trigger(showEvent);
|
||||||
|
|
||||||
var isInTheDom = $.contains(this.element.ownerDocument.documentElement, this.element);
|
var isInTheDom = $.contains(this.element.ownerDocument.documentElement, this.element);
|
||||||
|
@ -2943,6 +2975,7 @@ var Tooltip = function ($) {
|
||||||
var complete = function complete() {
|
var complete = function complete() {
|
||||||
var prevHoverState = _this22._hoverState;
|
var prevHoverState = _this22._hoverState;
|
||||||
_this22._hoverState = null;
|
_this22._hoverState = null;
|
||||||
|
_this22._isTransitioning = false;
|
||||||
|
|
||||||
$(_this22.element).trigger(_this22.constructor.Event.SHOWN);
|
$(_this22.element).trigger(_this22.constructor.Event.SHOWN);
|
||||||
|
|
||||||
|
@ -2952,6 +2985,7 @@ var Tooltip = function ($) {
|
||||||
};
|
};
|
||||||
|
|
||||||
if (Util.supportsTransitionEnd() && $(this.tip).hasClass(ClassName.FADE)) {
|
if (Util.supportsTransitionEnd() && $(this.tip).hasClass(ClassName.FADE)) {
|
||||||
|
this._isTransitioning = true;
|
||||||
$(this.tip).one(Util.TRANSITION_END, complete).emulateTransitionEnd(Tooltip._TRANSITION_DURATION);
|
$(this.tip).one(Util.TRANSITION_END, complete).emulateTransitionEnd(Tooltip._TRANSITION_DURATION);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -2965,6 +2999,9 @@ var Tooltip = function ($) {
|
||||||
|
|
||||||
var tip = this.getTipElement();
|
var tip = this.getTipElement();
|
||||||
var hideEvent = $.Event(this.constructor.Event.HIDE);
|
var hideEvent = $.Event(this.constructor.Event.HIDE);
|
||||||
|
if (this._isTransitioning) {
|
||||||
|
throw new Error('Tooltip is transitioning');
|
||||||
|
}
|
||||||
var complete = function complete() {
|
var complete = function complete() {
|
||||||
if (_this23._hoverState !== HoverState.ACTIVE && tip.parentNode) {
|
if (_this23._hoverState !== HoverState.ACTIVE && tip.parentNode) {
|
||||||
tip.parentNode.removeChild(tip);
|
tip.parentNode.removeChild(tip);
|
||||||
|
@ -2972,6 +3009,7 @@ var Tooltip = function ($) {
|
||||||
|
|
||||||
_this23.element.removeAttribute('aria-describedby');
|
_this23.element.removeAttribute('aria-describedby');
|
||||||
$(_this23.element).trigger(_this23.constructor.Event.HIDDEN);
|
$(_this23.element).trigger(_this23.constructor.Event.HIDDEN);
|
||||||
|
_this23._isTransitioning = false;
|
||||||
_this23.cleanupTether();
|
_this23.cleanupTether();
|
||||||
|
|
||||||
if (callback) {
|
if (callback) {
|
||||||
|
@ -2988,7 +3026,7 @@ var Tooltip = function ($) {
|
||||||
$(tip).removeClass(ClassName.ACTIVE);
|
$(tip).removeClass(ClassName.ACTIVE);
|
||||||
|
|
||||||
if (Util.supportsTransitionEnd() && $(this.tip).hasClass(ClassName.FADE)) {
|
if (Util.supportsTransitionEnd() && $(this.tip).hasClass(ClassName.FADE)) {
|
||||||
|
this._isTransitioning = true;
|
||||||
$(tip).one(Util.TRANSITION_END, complete).emulateTransitionEnd(TRANSITION_DURATION);
|
$(tip).one(Util.TRANSITION_END, complete).emulateTransitionEnd(TRANSITION_DURATION);
|
||||||
} else {
|
} else {
|
||||||
complete();
|
complete();
|
||||||
|
@ -3075,6 +3113,10 @@ var Tooltip = function ($) {
|
||||||
return _this24._leave(event);
|
return _this24._leave(event);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$(_this24.element).closest('.modal').on('hide.bs.modal', function () {
|
||||||
|
return _this24.hide();
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
if (this.config.selector) {
|
if (this.config.selector) {
|
||||||
|
|
4
dist/js/bootstrap.min.js
vendored
4
dist/js/bootstrap.min.js
vendored
File diff suppressed because one or more lines are too long
2
docs/dist/css/bootstrap-flex.css.map
vendored
2
docs/dist/css/bootstrap-flex.css.map
vendored
File diff suppressed because one or more lines are too long
2
docs/dist/css/bootstrap-flex.min.css.map
vendored
2
docs/dist/css/bootstrap-flex.min.css.map
vendored
File diff suppressed because one or more lines are too long
2
docs/dist/css/bootstrap-reboot.css.map
vendored
2
docs/dist/css/bootstrap-reboot.css.map
vendored
File diff suppressed because one or more lines are too long
2
docs/dist/css/bootstrap-reboot.min.css.map
vendored
2
docs/dist/css/bootstrap-reboot.min.css.map
vendored
|
@ -1 +1 @@
|
||||||
{"version":3,"sources":["../../scss/_normalize.scss","bootstrap-reboot.css","../../scss/_reboot.scss","../../scss/_variables.scss","../../scss/mixins/_tab-focus.scss"],"names":[],"mappings":"4EAYA,KACE,YAAA,WACA,YAAA,KACA,qBAAA,KACA,yBAAA,KAUF,KACE,OAAA,EAOF,QAAA,MAAA,OAAA,OAAA,IAAA,QAME,QAAA,MAQF,GACE,UAAA,IACA,OAAA,MAAA,EAWF,WAAA,OAAA,KAGE,QAAA,MAOF,OACE,OAAA,IAAA,KAQF,GACE,mBAAA,YAAA,WAAA,YACA,OAAA,EACA,SAAA,QAQF,IACE,YAAA,UAAA,UACA,UAAA,IAWF,EACE,iBAAA,YACA,6BAAA,QAQF,SAAA,QAEE,cAAA,EAQF,YACE,cAAA,KACA,gBAAA,UACA,gBAAA,UAAA,OAOF,EAAA,OAEE,YAAA,QAOF,EAAA,OAEE,YAAA,OAQF,KAAA,IAAA,KAGE,YAAA,UAAA,UACA,UAAA,IAOF,IACE,WAAA,OAOF,KACE,iBAAA,KACA,MAAA,KAOF,MACE,UAAA,IAQF,IAAA,IAEE,UAAA,IACA,YAAA,EACA,SAAA,SACA,eAAA,SAGF,IACE,OAAA,OAGF,IACE,IAAA,MAUF,MAAA,MAEE,QAAA,aAOF,sBACE,QAAA,KACA,OAAA,EAOF,IACE,aAAA,KAOF,eACE,SAAA,OAWF,OAAA,MAAA,SAAA,OAAA,SAKE,YAAA,WACA,UAAA,KACA,YAAA,KACA,OAAA,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EAAA,KAQF,EACE,MAAA,QACA,gBAAA,KAFF,QAAS,QAKL,MAAA,QACA,gBAAA,UANJ,QEzJE,QAAA,IAAA,KAAA,yBACA,eAAA,KF4KF,8BACE,MAAA,QACA,gBAAA,KAFF,oCAAqC,oCAKjC,MAAA,QACA,gBAAA,KANJ,oCAUI,QAAA,EASJ,IAEE,WAAA,EAEA,cAAA,KAEA,SAAA,KAQF,OAGE,OAAA,EAAA,EAAA,KAQF,IAGE,eAAA,OD2IF,cC9HE,OAAA,QAcF,cAAA,EAAA,KAAA,OAAA,MAAA,MAAA,OAAA,QAAA,SASE,iBAAA,aAAA,aAAA,aAQF,MAEE,gBAAA,SAEA,iBAAA,YAGF,QACE,YAAA,OACA,eAAA,OACA,MAAA,QACA,WAAA,KACA,aAAA,OAGF,GAEE,WAAA,KAQF,MAEE,QAAA,aACA,cAAA,MAOF,aACE,QAAA,IAAA,OACA,QAAA,IAAA,KAAA,yBAGF,OAAA,MAAA,OAAA,SAME,YAAA,QAGF,8BAAA,2BAMI,OAAA,YAKJ,iBAAA,iBAAA,2BAAA,kBASE,mBAAA,QAGF,SAEE,OAAA,SAGF,SAIE,UAAA,EAEA,QAAA,EACA,OAAA,EACA,OAAA,EAGF,OAEE,QAAA,MACA,MAAA,KACA,QAAA,EACA,cAAA,MACA,UAAA,OACA,YAAA,QAGF,mBAKE,mBAAA,KAIF,OACE,QAAA,aD6EF,SCrEE,QAAA"}
|
{"version":3,"sources":["../../scss/_normalize.scss","bootstrap-reboot.css","../../scss/_reboot.scss","../../scss/_variables.scss","../../scss/mixins/_tab-focus.scss"],"names":[],"mappings":"4EAYA,KACE,YAAA,WACA,YAAA,KACA,qBAAA,KACA,yBAAA,KAUF,KACE,OAAA,EAOF,QAAA,MAAA,OAAA,OAAA,IAAA,QAME,QAAA,MAQF,GACE,UAAA,IACA,OAAA,MAAA,EAWF,WAAA,OAAA,KAGE,QAAA,MAOF,OACE,OAAA,IAAA,KAQF,GACE,mBAAA,YAAA,WAAA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BAAA,kBASE,mBAAA,QAGF,SAEE,OAAA,SAGF,SAME,UAAA,EAEA,QAAA,EACA,OAAA,EACA,OAAA,EAGF,OAEE,QAAA,MACA,MAAA,KACA,QAAA,EACA,cAAA,MACA,UAAA,OACA,YAAA,QAGF,mBAKE,mBAAA,KAIF,OACE,QAAA,aD0EF,SClEE,QAAA"}
|
2
docs/dist/css/bootstrap.css.map
vendored
2
docs/dist/css/bootstrap.css.map
vendored
File diff suppressed because one or more lines are too long
2
docs/dist/css/bootstrap.min.css.map
vendored
2
docs/dist/css/bootstrap.min.css.map
vendored
File diff suppressed because one or more lines are too long
|
@ -624,9 +624,10 @@ var Carousel = function ($) {
|
||||||
// public
|
// public
|
||||||
|
|
||||||
Carousel.prototype.next = function next() {
|
Carousel.prototype.next = function next() {
|
||||||
if (!this._isSliding) {
|
if (this._isSliding) {
|
||||||
this._slide(Direction.NEXT);
|
throw new Error('Carousel is sliding');
|
||||||
}
|
}
|
||||||
|
this._slide(Direction.NEXT);
|
||||||
};
|
};
|
||||||
|
|
||||||
Carousel.prototype.nextWhenVisible = function nextWhenVisible() {
|
Carousel.prototype.nextWhenVisible = function nextWhenVisible() {
|
||||||
|
@ -637,9 +638,10 @@ var Carousel = function ($) {
|
||||||
};
|
};
|
||||||
|
|
||||||
Carousel.prototype.prev = function prev() {
|
Carousel.prototype.prev = function prev() {
|
||||||
if (!this._isSliding) {
|
if (this._isSliding) {
|
||||||
this._slide(Direction.PREVIOUS);
|
throw new Error('Carousel is sliding');
|
||||||
}
|
}
|
||||||
|
this._slide(Direction.PREVIOUS);
|
||||||
};
|
};
|
||||||
|
|
||||||
Carousel.prototype.pause = function pause(event) {
|
Carousel.prototype.pause = function pause(event) {
|
||||||
|
@ -1080,7 +1082,11 @@ var Collapse = function ($) {
|
||||||
Collapse.prototype.show = function show() {
|
Collapse.prototype.show = function show() {
|
||||||
var _this6 = this;
|
var _this6 = this;
|
||||||
|
|
||||||
if (this._isTransitioning || $(this._element).hasClass(ClassName.ACTIVE)) {
|
if (this._isTransitioning) {
|
||||||
|
throw new Error('Collapse is transitioning');
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($(this._element).hasClass(ClassName.ACTIVE)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1153,7 +1159,11 @@ var Collapse = function ($) {
|
||||||
Collapse.prototype.hide = function hide() {
|
Collapse.prototype.hide = function hide() {
|
||||||
var _this7 = this;
|
var _this7 = this;
|
||||||
|
|
||||||
if (this._isTransitioning || !$(this._element).hasClass(ClassName.ACTIVE)) {
|
if (this._isTransitioning) {
|
||||||
|
throw new Error('Collapse is transitioning');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!$(this._element).hasClass(ClassName.ACTIVE)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1692,6 +1702,7 @@ var Modal = function ($) {
|
||||||
this._isShown = false;
|
this._isShown = false;
|
||||||
this._isBodyOverflowing = false;
|
this._isBodyOverflowing = false;
|
||||||
this._ignoreBackdropClick = false;
|
this._ignoreBackdropClick = false;
|
||||||
|
this._isTransitioning = false;
|
||||||
this._originalBodyPadding = 0;
|
this._originalBodyPadding = 0;
|
||||||
this._scrollbarWidth = 0;
|
this._scrollbarWidth = 0;
|
||||||
}
|
}
|
||||||
|
@ -1707,6 +1718,13 @@ var Modal = function ($) {
|
||||||
Modal.prototype.show = function show(relatedTarget) {
|
Modal.prototype.show = function show(relatedTarget) {
|
||||||
var _this9 = this;
|
var _this9 = this;
|
||||||
|
|
||||||
|
if (this._isTransitioning) {
|
||||||
|
throw new Error('Modal is transitioning');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (Util.supportsTransitionEnd() && $(this._element).hasClass(ClassName.FADE)) {
|
||||||
|
this._isTransitioning = true;
|
||||||
|
}
|
||||||
var showEvent = $.Event(Event.SHOW, {
|
var showEvent = $.Event(Event.SHOW, {
|
||||||
relatedTarget: relatedTarget
|
relatedTarget: relatedTarget
|
||||||
});
|
});
|
||||||
|
@ -1751,8 +1769,16 @@ var Modal = function ($) {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
}
|
}
|
||||||
|
|
||||||
var hideEvent = $.Event(Event.HIDE);
|
if (this._isTransitioning) {
|
||||||
|
throw new Error('Modal is transitioning');
|
||||||
|
}
|
||||||
|
|
||||||
|
var transition = Util.supportsTransitionEnd() && $(this._element).hasClass(ClassName.FADE);
|
||||||
|
if (transition) {
|
||||||
|
this._isTransitioning = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
var hideEvent = $.Event(Event.HIDE);
|
||||||
$(this._element).trigger(hideEvent);
|
$(this._element).trigger(hideEvent);
|
||||||
|
|
||||||
if (!this._isShown || hideEvent.isDefaultPrevented()) {
|
if (!this._isShown || hideEvent.isDefaultPrevented()) {
|
||||||
|
@ -1771,8 +1797,7 @@ var Modal = function ($) {
|
||||||
$(this._element).off(Event.CLICK_DISMISS);
|
$(this._element).off(Event.CLICK_DISMISS);
|
||||||
$(this._dialog).off(Event.MOUSEDOWN_DISMISS);
|
$(this._dialog).off(Event.MOUSEDOWN_DISMISS);
|
||||||
|
|
||||||
if (Util.supportsTransitionEnd() && $(this._element).hasClass(ClassName.FADE)) {
|
if (transition) {
|
||||||
|
|
||||||
$(this._element).one(Util.TRANSITION_END, function (event) {
|
$(this._element).one(Util.TRANSITION_END, function (event) {
|
||||||
return _this10._hideModal(event);
|
return _this10._hideModal(event);
|
||||||
}).emulateTransitionEnd(TRANSITION_DURATION);
|
}).emulateTransitionEnd(TRANSITION_DURATION);
|
||||||
|
@ -1837,6 +1862,7 @@ var Modal = function ($) {
|
||||||
if (_this11._config.focus) {
|
if (_this11._config.focus) {
|
||||||
_this11._element.focus();
|
_this11._element.focus();
|
||||||
}
|
}
|
||||||
|
_this11._isTransitioning = false;
|
||||||
$(_this11._element).trigger(shownEvent);
|
$(_this11._element).trigger(shownEvent);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -1888,7 +1914,8 @@ var Modal = function ($) {
|
||||||
var _this15 = this;
|
var _this15 = this;
|
||||||
|
|
||||||
this._element.style.display = 'none';
|
this._element.style.display = 'none';
|
||||||
this._element.setAttribute('aria-hidden', true);
|
this._element.setAttribute('aria-hidden', 'true');
|
||||||
|
this._isTransitioning = false;
|
||||||
this._showBackdrop(function () {
|
this._showBackdrop(function () {
|
||||||
$(document.body).removeClass(ClassName.OPEN);
|
$(document.body).removeClass(ClassName.OPEN);
|
||||||
_this15._resetAdjustments();
|
_this15._resetAdjustments();
|
||||||
|
@ -2807,6 +2834,7 @@ var Tooltip = function ($) {
|
||||||
this._timeout = 0;
|
this._timeout = 0;
|
||||||
this._hoverState = '';
|
this._hoverState = '';
|
||||||
this._activeTrigger = {};
|
this._activeTrigger = {};
|
||||||
|
this._isTransitioning = false;
|
||||||
this._tether = null;
|
this._tether = null;
|
||||||
|
|
||||||
// protected
|
// protected
|
||||||
|
@ -2869,6 +2897,7 @@ var Tooltip = function ($) {
|
||||||
$.removeData(this.element, this.constructor.DATA_KEY);
|
$.removeData(this.element, this.constructor.DATA_KEY);
|
||||||
|
|
||||||
$(this.element).off(this.constructor.EVENT_KEY);
|
$(this.element).off(this.constructor.EVENT_KEY);
|
||||||
|
$(this.element).closest('.modal').off('hide.bs.modal');
|
||||||
|
|
||||||
if (this.tip) {
|
if (this.tip) {
|
||||||
$(this.tip).remove();
|
$(this.tip).remove();
|
||||||
|
@ -2891,9 +2920,12 @@ var Tooltip = function ($) {
|
||||||
if ($(this.element).css('display') === 'none') {
|
if ($(this.element).css('display') === 'none') {
|
||||||
throw new Error('Please use show on visible elements');
|
throw new Error('Please use show on visible elements');
|
||||||
}
|
}
|
||||||
var showEvent = $.Event(this.constructor.Event.SHOW);
|
|
||||||
|
|
||||||
|
var showEvent = $.Event(this.constructor.Event.SHOW);
|
||||||
if (this.isWithContent() && this._isEnabled) {
|
if (this.isWithContent() && this._isEnabled) {
|
||||||
|
if (this._isTransitioning) {
|
||||||
|
throw new Error('Tooltip is transitioning');
|
||||||
|
}
|
||||||
$(this.element).trigger(showEvent);
|
$(this.element).trigger(showEvent);
|
||||||
|
|
||||||
var isInTheDom = $.contains(this.element.ownerDocument.documentElement, this.element);
|
var isInTheDom = $.contains(this.element.ownerDocument.documentElement, this.element);
|
||||||
|
@ -2943,6 +2975,7 @@ var Tooltip = function ($) {
|
||||||
var complete = function complete() {
|
var complete = function complete() {
|
||||||
var prevHoverState = _this22._hoverState;
|
var prevHoverState = _this22._hoverState;
|
||||||
_this22._hoverState = null;
|
_this22._hoverState = null;
|
||||||
|
_this22._isTransitioning = false;
|
||||||
|
|
||||||
$(_this22.element).trigger(_this22.constructor.Event.SHOWN);
|
$(_this22.element).trigger(_this22.constructor.Event.SHOWN);
|
||||||
|
|
||||||
|
@ -2952,6 +2985,7 @@ var Tooltip = function ($) {
|
||||||
};
|
};
|
||||||
|
|
||||||
if (Util.supportsTransitionEnd() && $(this.tip).hasClass(ClassName.FADE)) {
|
if (Util.supportsTransitionEnd() && $(this.tip).hasClass(ClassName.FADE)) {
|
||||||
|
this._isTransitioning = true;
|
||||||
$(this.tip).one(Util.TRANSITION_END, complete).emulateTransitionEnd(Tooltip._TRANSITION_DURATION);
|
$(this.tip).one(Util.TRANSITION_END, complete).emulateTransitionEnd(Tooltip._TRANSITION_DURATION);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -2965,6 +2999,9 @@ var Tooltip = function ($) {
|
||||||
|
|
||||||
var tip = this.getTipElement();
|
var tip = this.getTipElement();
|
||||||
var hideEvent = $.Event(this.constructor.Event.HIDE);
|
var hideEvent = $.Event(this.constructor.Event.HIDE);
|
||||||
|
if (this._isTransitioning) {
|
||||||
|
throw new Error('Tooltip is transitioning');
|
||||||
|
}
|
||||||
var complete = function complete() {
|
var complete = function complete() {
|
||||||
if (_this23._hoverState !== HoverState.ACTIVE && tip.parentNode) {
|
if (_this23._hoverState !== HoverState.ACTIVE && tip.parentNode) {
|
||||||
tip.parentNode.removeChild(tip);
|
tip.parentNode.removeChild(tip);
|
||||||
|
@ -2972,6 +3009,7 @@ var Tooltip = function ($) {
|
||||||
|
|
||||||
_this23.element.removeAttribute('aria-describedby');
|
_this23.element.removeAttribute('aria-describedby');
|
||||||
$(_this23.element).trigger(_this23.constructor.Event.HIDDEN);
|
$(_this23.element).trigger(_this23.constructor.Event.HIDDEN);
|
||||||
|
_this23._isTransitioning = false;
|
||||||
_this23.cleanupTether();
|
_this23.cleanupTether();
|
||||||
|
|
||||||
if (callback) {
|
if (callback) {
|
||||||
|
@ -2988,7 +3026,7 @@ var Tooltip = function ($) {
|
||||||
$(tip).removeClass(ClassName.ACTIVE);
|
$(tip).removeClass(ClassName.ACTIVE);
|
||||||
|
|
||||||
if (Util.supportsTransitionEnd() && $(this.tip).hasClass(ClassName.FADE)) {
|
if (Util.supportsTransitionEnd() && $(this.tip).hasClass(ClassName.FADE)) {
|
||||||
|
this._isTransitioning = true;
|
||||||
$(tip).one(Util.TRANSITION_END, complete).emulateTransitionEnd(TRANSITION_DURATION);
|
$(tip).one(Util.TRANSITION_END, complete).emulateTransitionEnd(TRANSITION_DURATION);
|
||||||
} else {
|
} else {
|
||||||
complete();
|
complete();
|
||||||
|
@ -3075,6 +3113,10 @@ var Tooltip = function ($) {
|
||||||
return _this24._leave(event);
|
return _this24._leave(event);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$(_this24.element).closest('.modal').on('hide.bs.modal', function () {
|
||||||
|
return _this24.hide();
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
if (this.config.selector) {
|
if (this.config.selector) {
|
||||||
|
|
4
docs/dist/js/bootstrap.min.js
vendored
4
docs/dist/js/bootstrap.min.js
vendored
File diff suppressed because one or more lines are too long
10
js/dist/carousel.js
vendored
10
js/dist/carousel.js
vendored
|
@ -108,9 +108,10 @@ var Carousel = function ($) {
|
||||||
// public
|
// public
|
||||||
|
|
||||||
Carousel.prototype.next = function next() {
|
Carousel.prototype.next = function next() {
|
||||||
if (!this._isSliding) {
|
if (this._isSliding) {
|
||||||
this._slide(Direction.NEXT);
|
throw new Error('Carousel is sliding');
|
||||||
}
|
}
|
||||||
|
this._slide(Direction.NEXT);
|
||||||
};
|
};
|
||||||
|
|
||||||
Carousel.prototype.nextWhenVisible = function nextWhenVisible() {
|
Carousel.prototype.nextWhenVisible = function nextWhenVisible() {
|
||||||
|
@ -121,9 +122,10 @@ var Carousel = function ($) {
|
||||||
};
|
};
|
||||||
|
|
||||||
Carousel.prototype.prev = function prev() {
|
Carousel.prototype.prev = function prev() {
|
||||||
if (!this._isSliding) {
|
if (this._isSliding) {
|
||||||
this._slide(Direction.PREVIOUS);
|
throw new Error('Carousel is sliding');
|
||||||
}
|
}
|
||||||
|
this._slide(Direction.PREVIOUS);
|
||||||
};
|
};
|
||||||
|
|
||||||
Carousel.prototype.pause = function pause(event) {
|
Carousel.prototype.pause = function pause(event) {
|
||||||
|
|
2
js/dist/carousel.js.map
vendored
2
js/dist/carousel.js.map
vendored
File diff suppressed because one or more lines are too long
12
js/dist/collapse.js
vendored
12
js/dist/collapse.js
vendored
|
@ -103,7 +103,11 @@ var Collapse = function ($) {
|
||||||
Collapse.prototype.show = function show() {
|
Collapse.prototype.show = function show() {
|
||||||
var _this = this;
|
var _this = this;
|
||||||
|
|
||||||
if (this._isTransitioning || $(this._element).hasClass(ClassName.ACTIVE)) {
|
if (this._isTransitioning) {
|
||||||
|
throw new Error('Collapse is transitioning');
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($(this._element).hasClass(ClassName.ACTIVE)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -176,7 +180,11 @@ var Collapse = function ($) {
|
||||||
Collapse.prototype.hide = function hide() {
|
Collapse.prototype.hide = function hide() {
|
||||||
var _this2 = this;
|
var _this2 = this;
|
||||||
|
|
||||||
if (this._isTransitioning || !$(this._element).hasClass(ClassName.ACTIVE)) {
|
if (this._isTransitioning) {
|
||||||
|
throw new Error('Collapse is transitioning');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!$(this._element).hasClass(ClassName.ACTIVE)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
2
js/dist/collapse.js.map
vendored
2
js/dist/collapse.js.map
vendored
File diff suppressed because one or more lines are too long
25
js/dist/modal.js
vendored
25
js/dist/modal.js
vendored
|
@ -89,6 +89,7 @@ var Modal = function ($) {
|
||||||
this._isShown = false;
|
this._isShown = false;
|
||||||
this._isBodyOverflowing = false;
|
this._isBodyOverflowing = false;
|
||||||
this._ignoreBackdropClick = false;
|
this._ignoreBackdropClick = false;
|
||||||
|
this._isTransitioning = false;
|
||||||
this._originalBodyPadding = 0;
|
this._originalBodyPadding = 0;
|
||||||
this._scrollbarWidth = 0;
|
this._scrollbarWidth = 0;
|
||||||
}
|
}
|
||||||
|
@ -104,6 +105,13 @@ var Modal = function ($) {
|
||||||
Modal.prototype.show = function show(relatedTarget) {
|
Modal.prototype.show = function show(relatedTarget) {
|
||||||
var _this = this;
|
var _this = this;
|
||||||
|
|
||||||
|
if (this._isTransitioning) {
|
||||||
|
throw new Error('Modal is transitioning');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (Util.supportsTransitionEnd() && $(this._element).hasClass(ClassName.FADE)) {
|
||||||
|
this._isTransitioning = true;
|
||||||
|
}
|
||||||
var showEvent = $.Event(Event.SHOW, {
|
var showEvent = $.Event(Event.SHOW, {
|
||||||
relatedTarget: relatedTarget
|
relatedTarget: relatedTarget
|
||||||
});
|
});
|
||||||
|
@ -148,8 +156,16 @@ var Modal = function ($) {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
}
|
}
|
||||||
|
|
||||||
var hideEvent = $.Event(Event.HIDE);
|
if (this._isTransitioning) {
|
||||||
|
throw new Error('Modal is transitioning');
|
||||||
|
}
|
||||||
|
|
||||||
|
var transition = Util.supportsTransitionEnd() && $(this._element).hasClass(ClassName.FADE);
|
||||||
|
if (transition) {
|
||||||
|
this._isTransitioning = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
var hideEvent = $.Event(Event.HIDE);
|
||||||
$(this._element).trigger(hideEvent);
|
$(this._element).trigger(hideEvent);
|
||||||
|
|
||||||
if (!this._isShown || hideEvent.isDefaultPrevented()) {
|
if (!this._isShown || hideEvent.isDefaultPrevented()) {
|
||||||
|
@ -168,8 +184,7 @@ var Modal = function ($) {
|
||||||
$(this._element).off(Event.CLICK_DISMISS);
|
$(this._element).off(Event.CLICK_DISMISS);
|
||||||
$(this._dialog).off(Event.MOUSEDOWN_DISMISS);
|
$(this._dialog).off(Event.MOUSEDOWN_DISMISS);
|
||||||
|
|
||||||
if (Util.supportsTransitionEnd() && $(this._element).hasClass(ClassName.FADE)) {
|
if (transition) {
|
||||||
|
|
||||||
$(this._element).one(Util.TRANSITION_END, function (event) {
|
$(this._element).one(Util.TRANSITION_END, function (event) {
|
||||||
return _this2._hideModal(event);
|
return _this2._hideModal(event);
|
||||||
}).emulateTransitionEnd(TRANSITION_DURATION);
|
}).emulateTransitionEnd(TRANSITION_DURATION);
|
||||||
|
@ -234,6 +249,7 @@ var Modal = function ($) {
|
||||||
if (_this3._config.focus) {
|
if (_this3._config.focus) {
|
||||||
_this3._element.focus();
|
_this3._element.focus();
|
||||||
}
|
}
|
||||||
|
_this3._isTransitioning = false;
|
||||||
$(_this3._element).trigger(shownEvent);
|
$(_this3._element).trigger(shownEvent);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -285,7 +301,8 @@ var Modal = function ($) {
|
||||||
var _this7 = this;
|
var _this7 = this;
|
||||||
|
|
||||||
this._element.style.display = 'none';
|
this._element.style.display = 'none';
|
||||||
this._element.setAttribute('aria-hidden', true);
|
this._element.setAttribute('aria-hidden', 'true');
|
||||||
|
this._isTransitioning = false;
|
||||||
this._showBackdrop(function () {
|
this._showBackdrop(function () {
|
||||||
$(document.body).removeClass(ClassName.OPEN);
|
$(document.body).removeClass(ClassName.OPEN);
|
||||||
_this7._resetAdjustments();
|
_this7._resetAdjustments();
|
||||||
|
|
2
js/dist/modal.js.map
vendored
2
js/dist/modal.js.map
vendored
File diff suppressed because one or more lines are too long
14
js/dist/tooltip.js
vendored
14
js/dist/tooltip.js
vendored
|
@ -125,6 +125,7 @@ var Tooltip = function ($) {
|
||||||
this._timeout = 0;
|
this._timeout = 0;
|
||||||
this._hoverState = '';
|
this._hoverState = '';
|
||||||
this._activeTrigger = {};
|
this._activeTrigger = {};
|
||||||
|
this._isTransitioning = false;
|
||||||
this._tether = null;
|
this._tether = null;
|
||||||
|
|
||||||
// protected
|
// protected
|
||||||
|
@ -210,9 +211,12 @@ var Tooltip = function ($) {
|
||||||
if ($(this.element).css('display') === 'none') {
|
if ($(this.element).css('display') === 'none') {
|
||||||
throw new Error('Please use show on visible elements');
|
throw new Error('Please use show on visible elements');
|
||||||
}
|
}
|
||||||
var showEvent = $.Event(this.constructor.Event.SHOW);
|
|
||||||
|
|
||||||
|
var showEvent = $.Event(this.constructor.Event.SHOW);
|
||||||
if (this.isWithContent() && this._isEnabled) {
|
if (this.isWithContent() && this._isEnabled) {
|
||||||
|
if (this._isTransitioning) {
|
||||||
|
throw new Error('Tooltip is transitioning');
|
||||||
|
}
|
||||||
$(this.element).trigger(showEvent);
|
$(this.element).trigger(showEvent);
|
||||||
|
|
||||||
var isInTheDom = $.contains(this.element.ownerDocument.documentElement, this.element);
|
var isInTheDom = $.contains(this.element.ownerDocument.documentElement, this.element);
|
||||||
|
@ -262,6 +266,7 @@ var Tooltip = function ($) {
|
||||||
var complete = function complete() {
|
var complete = function complete() {
|
||||||
var prevHoverState = _this._hoverState;
|
var prevHoverState = _this._hoverState;
|
||||||
_this._hoverState = null;
|
_this._hoverState = null;
|
||||||
|
_this._isTransitioning = false;
|
||||||
|
|
||||||
$(_this.element).trigger(_this.constructor.Event.SHOWN);
|
$(_this.element).trigger(_this.constructor.Event.SHOWN);
|
||||||
|
|
||||||
|
@ -271,6 +276,7 @@ var Tooltip = function ($) {
|
||||||
};
|
};
|
||||||
|
|
||||||
if (Util.supportsTransitionEnd() && $(this.tip).hasClass(ClassName.FADE)) {
|
if (Util.supportsTransitionEnd() && $(this.tip).hasClass(ClassName.FADE)) {
|
||||||
|
this._isTransitioning = true;
|
||||||
$(this.tip).one(Util.TRANSITION_END, complete).emulateTransitionEnd(Tooltip._TRANSITION_DURATION);
|
$(this.tip).one(Util.TRANSITION_END, complete).emulateTransitionEnd(Tooltip._TRANSITION_DURATION);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -284,6 +290,9 @@ var Tooltip = function ($) {
|
||||||
|
|
||||||
var tip = this.getTipElement();
|
var tip = this.getTipElement();
|
||||||
var hideEvent = $.Event(this.constructor.Event.HIDE);
|
var hideEvent = $.Event(this.constructor.Event.HIDE);
|
||||||
|
if (this._isTransitioning) {
|
||||||
|
throw new Error('Tooltip is transitioning');
|
||||||
|
}
|
||||||
var complete = function complete() {
|
var complete = function complete() {
|
||||||
if (_this2._hoverState !== HoverState.ACTIVE && tip.parentNode) {
|
if (_this2._hoverState !== HoverState.ACTIVE && tip.parentNode) {
|
||||||
tip.parentNode.removeChild(tip);
|
tip.parentNode.removeChild(tip);
|
||||||
|
@ -291,6 +300,7 @@ var Tooltip = function ($) {
|
||||||
|
|
||||||
_this2.element.removeAttribute('aria-describedby');
|
_this2.element.removeAttribute('aria-describedby');
|
||||||
$(_this2.element).trigger(_this2.constructor.Event.HIDDEN);
|
$(_this2.element).trigger(_this2.constructor.Event.HIDDEN);
|
||||||
|
_this2._isTransitioning = false;
|
||||||
_this2.cleanupTether();
|
_this2.cleanupTether();
|
||||||
|
|
||||||
if (callback) {
|
if (callback) {
|
||||||
|
@ -307,7 +317,7 @@ var Tooltip = function ($) {
|
||||||
$(tip).removeClass(ClassName.ACTIVE);
|
$(tip).removeClass(ClassName.ACTIVE);
|
||||||
|
|
||||||
if (Util.supportsTransitionEnd() && $(this.tip).hasClass(ClassName.FADE)) {
|
if (Util.supportsTransitionEnd() && $(this.tip).hasClass(ClassName.FADE)) {
|
||||||
|
this._isTransitioning = true;
|
||||||
$(tip).one(Util.TRANSITION_END, complete).emulateTransitionEnd(TRANSITION_DURATION);
|
$(tip).one(Util.TRANSITION_END, complete).emulateTransitionEnd(TRANSITION_DURATION);
|
||||||
} else {
|
} else {
|
||||||
complete();
|
complete();
|
||||||
|
|
2
js/dist/tooltip.js.map
vendored
2
js/dist/tooltip.js.map
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue