diff options
Diffstat (limited to 'docs/dist/js/bootstrap.js')
-rw-r--r-- | docs/dist/js/bootstrap.js | 74 |
1 files changed, 37 insertions, 37 deletions
diff --git a/docs/dist/js/bootstrap.js b/docs/dist/js/bootstrap.js index 0e934e04f7..46179bea55 100644 --- a/docs/dist/js/bootstrap.js +++ b/docs/dist/js/bootstrap.js @@ -214,7 +214,7 @@ var Alert = function ($) { var ClassName = { ALERT: 'alert', FADE: 'fade', - ACTIVE: 'active' + SHOW: 'show' }; /** @@ -279,7 +279,7 @@ var Alert = function ($) { Alert.prototype._removeElement = function _removeElement(element) { var _this2 = this; - $(element).removeClass(ClassName.ACTIVE); + $(element).removeClass(ClassName.SHOW); if (!Util.supportsTransitionEnd() || !$(element).hasClass(ClassName.FADE)) { this._destroyElement(element); @@ -1041,7 +1041,7 @@ var Collapse = function ($) { }; var ClassName = { - ACTIVE: 'active', + SHOW: 'show', COLLAPSE: 'collapse', COLLAPSING: 'collapsing', COLLAPSED: 'collapsed' @@ -1053,7 +1053,7 @@ var Collapse = function ($) { }; var Selector = { - ACTIVES: '.card > .active, .card > .collapsing', + ACTIVES: '.card > .show, .card > .collapsing', DATA_TOGGLE: '[data-toggle="collapse"]' }; @@ -1088,7 +1088,7 @@ var Collapse = function ($) { // public Collapse.prototype.toggle = function toggle() { - if ($(this._element).hasClass(ClassName.ACTIVE)) { + if ($(this._element).hasClass(ClassName.SHOW)) { this.hide(); } else { this.show(); @@ -1102,7 +1102,7 @@ var Collapse = function ($) { throw new Error('Collapse is transitioning'); } - if ($(this._element).hasClass(ClassName.ACTIVE)) { + if ($(this._element).hasClass(ClassName.SHOW)) { return; } @@ -1150,7 +1150,7 @@ var Collapse = function ($) { this.setTransitioning(true); var complete = function complete() { - $(_this6._element).removeClass(ClassName.COLLAPSING).addClass(ClassName.COLLAPSE).addClass(ClassName.ACTIVE); + $(_this6._element).removeClass(ClassName.COLLAPSING).addClass(ClassName.COLLAPSE).addClass(ClassName.SHOW); _this6._element.style[dimension] = ''; @@ -1179,7 +1179,7 @@ var Collapse = function ($) { throw new Error('Collapse is transitioning'); } - if (!$(this._element).hasClass(ClassName.ACTIVE)) { + if (!$(this._element).hasClass(ClassName.SHOW)) { return; } @@ -1196,7 +1196,7 @@ var Collapse = function ($) { Util.reflow(this._element); - $(this._element).addClass(ClassName.COLLAPSING).removeClass(ClassName.COLLAPSE).removeClass(ClassName.ACTIVE); + $(this._element).addClass(ClassName.COLLAPSING).removeClass(ClassName.COLLAPSE).removeClass(ClassName.SHOW); this._element.setAttribute('aria-expanded', false); @@ -1264,7 +1264,7 @@ var Collapse = function ($) { Collapse.prototype._addAriaAndCollapsedClass = function _addAriaAndCollapsedClass(element, triggerArray) { if (element) { - var isOpen = $(element).hasClass(ClassName.ACTIVE); + var isOpen = $(element).hasClass(ClassName.SHOW); element.setAttribute('aria-expanded', isOpen); if (triggerArray.length) { @@ -1390,7 +1390,7 @@ var Dropdown = function ($) { var ClassName = { BACKDROP: 'dropdown-backdrop', DISABLED: 'disabled', - ACTIVE: 'active' + SHOW: 'show' }; var Selector = { @@ -1428,7 +1428,7 @@ var Dropdown = function ($) { } var parent = Dropdown._getParentFromElement(this); - var isActive = $(parent).hasClass(ClassName.ACTIVE); + var isActive = $(parent).hasClass(ClassName.SHOW); Dropdown._clearMenus(); @@ -1459,7 +1459,7 @@ var Dropdown = function ($) { this.focus(); this.setAttribute('aria-expanded', true); - $(parent).toggleClass(ClassName.ACTIVE); + $(parent).toggleClass(ClassName.SHOW); $(parent).trigger($.Event(Event.SHOWN, relatedTarget)); return false; @@ -1515,7 +1515,7 @@ var Dropdown = function ($) { relatedTarget: toggles[i] }; - if (!$(parent).hasClass(ClassName.ACTIVE)) { + if (!$(parent).hasClass(ClassName.SHOW)) { continue; } @@ -1531,7 +1531,7 @@ var Dropdown = function ($) { toggles[i].setAttribute('aria-expanded', 'false'); - $(parent).removeClass(ClassName.ACTIVE).trigger($.Event(Event.HIDDEN, relatedTarget)); + $(parent).removeClass(ClassName.SHOW).trigger($.Event(Event.HIDDEN, relatedTarget)); } }; @@ -1559,7 +1559,7 @@ var Dropdown = function ($) { } var parent = Dropdown._getParentFromElement(this); - var isActive = $(parent).hasClass(ClassName.ACTIVE); + var isActive = $(parent).hasClass(ClassName.SHOW); if (!isActive && event.which !== ESCAPE_KEYCODE || isActive && event.which === ESCAPE_KEYCODE) { @@ -1691,7 +1691,7 @@ var Modal = function ($) { BACKDROP: 'modal-backdrop', OPEN: 'modal-open', FADE: 'fade', - ACTIVE: 'active' + SHOW: 'show' }; var Selector = { @@ -1808,7 +1808,7 @@ var Modal = function ($) { $(document).off(Event.FOCUSIN); - $(this._element).removeClass(ClassName.ACTIVE); + $(this._element).removeClass(ClassName.SHOW); $(this._element).off(Event.CLICK_DISMISS); $(this._dialog).off(Event.MOUSEDOWN_DISMISS); @@ -1864,7 +1864,7 @@ var Modal = function ($) { Util.reflow(this._element); } - $(this._element).addClass(ClassName.ACTIVE); + $(this._element).addClass(ClassName.SHOW); if (this._config.focus) { this._enforceFocus(); @@ -1983,7 +1983,7 @@ var Modal = function ($) { Util.reflow(this._backdrop); } - $(this._backdrop).addClass(ClassName.ACTIVE); + $(this._backdrop).addClass(ClassName.SHOW); if (!callback) { return; @@ -1996,7 +1996,7 @@ var Modal = function ($) { $(this._backdrop).one(Util.TRANSITION_END, callback).emulateTransitionEnd(BACKDROP_TRANSITION_DURATION); } else if (!this._isShown && this._backdrop) { - $(this._backdrop).removeClass(ClassName.ACTIVE); + $(this._backdrop).removeClass(ClassName.SHOW); var callbackRemove = function callbackRemove() { _this16._removeBackdrop(); @@ -2509,7 +2509,7 @@ var Tab = function ($) { DROPDOWN_MENU: 'dropdown-menu', ACTIVE: 'active', FADE: 'fade', - IN: 'in' + SHOW: 'show' }; var Selector = { @@ -2627,7 +2627,7 @@ var Tab = function ($) { } if (active) { - $(active).removeClass(ClassName.IN); + $(active).removeClass(ClassName.SHOW); } }; @@ -2649,7 +2649,7 @@ var Tab = function ($) { if (isTransitioning) { Util.reflow(element); - $(element).addClass(ClassName.IN); + $(element).addClass(ClassName.SHOW); } else { $(element).removeClass(ClassName.FADE); } @@ -2796,7 +2796,7 @@ var Tooltip = function ($) { }; var HoverState = { - ACTIVE: 'active', + SHOW: 'show', OUT: 'out' }; @@ -2815,7 +2815,7 @@ var Tooltip = function ($) { var ClassName = { FADE: 'fade', - ACTIVE: 'active' + SHOW: 'show' }; var Selector = { @@ -2896,7 +2896,7 @@ var Tooltip = function ($) { } } else { - if ($(this.getTipElement()).hasClass(ClassName.ACTIVE)) { + if ($(this.getTipElement()).hasClass(ClassName.SHOW)) { this._leave(null, this); return; } @@ -2986,7 +2986,7 @@ var Tooltip = function ($) { Util.reflow(tip); this._tether.position(); - $(tip).addClass(ClassName.ACTIVE); + $(tip).addClass(ClassName.SHOW); var complete = function complete() { var prevHoverState = _this22._hoverState; @@ -3019,7 +3019,7 @@ var Tooltip = function ($) { throw new Error('Tooltip is transitioning'); } var complete = function complete() { - if (_this23._hoverState !== HoverState.ACTIVE && tip.parentNode) { + if (_this23._hoverState !== HoverState.SHOW && tip.parentNode) { tip.parentNode.removeChild(tip); } @@ -3039,7 +3039,7 @@ var Tooltip = function ($) { return; } - $(tip).removeClass(ClassName.ACTIVE); + $(tip).removeClass(ClassName.SHOW); if (Util.supportsTransitionEnd() && $(this.tip).hasClass(ClassName.FADE)) { this._isTransitioning = true; @@ -3066,7 +3066,7 @@ var Tooltip = function ($) { this.setElementContent($tip.find(Selector.TOOLTIP_INNER), this.getTitle()); - $tip.removeClass(ClassName.FADE + ' ' + ClassName.ACTIVE); + $tip.removeClass(ClassName.FADE + ' ' + ClassName.SHOW); this.cleanupTether(); }; @@ -3167,14 +3167,14 @@ var Tooltip = function ($) { context._activeTrigger[event.type === 'focusin' ? Trigger.FOCUS : Trigger.HOVER] = true; } - if ($(context.getTipElement()).hasClass(ClassName.ACTIVE) || context._hoverState === HoverState.ACTIVE) { - context._hoverState = HoverState.ACTIVE; + if ($(context.getTipElement()).hasClass(ClassName.SHOW) || context._hoverState === HoverState.SHOW) { + context._hoverState = HoverState.SHOW; return; } clearTimeout(context._timeout); - context._hoverState = HoverState.ACTIVE; + context._hoverState = HoverState.SHOW; if (!context.config.delay || !context.config.delay.show) { context.show(); @@ -3182,7 +3182,7 @@ var Tooltip = function ($) { } context._timeout = setTimeout(function () { - if (context._hoverState === HoverState.ACTIVE) { + if (context._hoverState === HoverState.SHOW) { context.show(); } }, context.config.delay.show); @@ -3376,7 +3376,7 @@ var Popover = function ($) { var ClassName = { FADE: 'fade', - ACTIVE: 'active' + SHOW: 'show' }; var Selector = { @@ -3429,7 +3429,7 @@ var Popover = function ($) { this.setElementContent($tip.find(Selector.TITLE), this.getTitle()); this.setElementContent($tip.find(Selector.CONTENT), this._getContent()); - $tip.removeClass(ClassName.FADE + ' ' + ClassName.ACTIVE); + $tip.removeClass(ClassName.FADE + ' ' + ClassName.SHOW); this.cleanupTether(); }; |