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:
Diffstat (limited to 'dist/js/bootstrap.bundle.js')
-rw-r--r--dist/js/bootstrap.bundle.js112
1 files changed, 58 insertions, 54 deletions
diff --git a/dist/js/bootstrap.bundle.js b/dist/js/bootstrap.bundle.js
index 6fd1000b70..6dc26d7b3b 100644
--- a/dist/js/bootstrap.bundle.js
+++ b/dist/js/bootstrap.bundle.js
@@ -1,13 +1,13 @@
/*!
* Bootstrap v4.2.1 (https://getbootstrap.com/)
- * Copyright 2011-2018 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
+ * Copyright 2011-2019 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
*/
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('jquery')) :
typeof define === 'function' && define.amd ? define(['exports', 'jquery'], factory) :
- (factory((global.bootstrap = {}),global.jQuery));
-}(this, (function (exports,$) { 'use strict';
+ (global = global || self, factory(global.bootstrap = {}, global.jQuery));
+}(this, function (exports, $) { 'use strict';
$ = $ && $.hasOwnProperty('default') ? $['default'] : $;
@@ -145,7 +145,11 @@
selector = hrefAttr && hrefAttr !== '#' ? hrefAttr.trim() : '';
}
- return selector && document.querySelector(selector) ? selector : null;
+ try {
+ return document.querySelector(selector) ? selector : null;
+ } catch (err) {
+ return null;
+ }
},
getTransitionDurationFromElement: function getTransitionDurationFromElement(element) {
if (!element) {
@@ -280,8 +284,8 @@
_proto.dispose = function dispose() {
$.removeData(this._element, DATA_KEY);
this._element = null;
- }; // Private
-
+ } // Private
+ ;
_proto._getRootElement = function _getRootElement(element) {
var selector = Util.getSelectorFromElement(element);
@@ -323,8 +327,8 @@
_proto._destroyElement = function _destroyElement(element) {
$(element).detach().trigger(Event.CLOSED).remove();
- }; // Static
-
+ } // Static
+ ;
Alert._jQueryInterface = function _jQueryInterface(config) {
return this.each(function () {
@@ -476,8 +480,8 @@
_proto.dispose = function dispose() {
$.removeData(this._element, DATA_KEY$1);
this._element = null;
- }; // Static
-
+ } // Static
+ ;
Button._jQueryInterface = function _jQueryInterface(config) {
return this.each(function () {
@@ -739,8 +743,8 @@
this._isSliding = null;
this._activeElement = null;
this._indicatorsElement = null;
- }; // Private
-
+ } // Private
+ ;
_proto._getConfig = function _getConfig(config) {
config = _objectSpread({}, Default, config);
@@ -1025,8 +1029,8 @@
if (isCycling) {
this.cycle();
}
- }; // Static
-
+ } // Static
+ ;
Carousel._jQueryInterface = function _jQueryInterface(config) {
return this.each(function () {
@@ -1053,7 +1057,7 @@
}
data[action]();
- } else if (_config.interval) {
+ } else if (_config.interval && _config.ride) {
data.pause();
data.cycle();
}
@@ -1364,8 +1368,8 @@
this._element = null;
this._triggerArray = null;
this._isTransitioning = null;
- }; // Private
-
+ } // Private
+ ;
_proto._getConfig = function _getConfig(config) {
config = _objectSpread({}, Default$1, config);
@@ -1409,8 +1413,8 @@
if (triggerArray.length) {
$(triggerArray).toggleClass(ClassName$3.COLLAPSED, !isOpen).attr('aria-expanded', isOpen);
}
- }; // Static
-
+ } // Static
+ ;
Collapse._getTargetFromElement = function _getTargetFromElement(element) {
var selector = Util.getSelectorFromElement(element);
@@ -4301,8 +4305,8 @@
if (this._popper !== null) {
this._popper.scheduleUpdate();
}
- }; // Private
-
+ } // Private
+ ;
_proto._addEventListeners = function _addEventListeners() {
var _this = this;
@@ -4393,8 +4397,8 @@
}
return popperConfig;
- }; // Static
-
+ } // Static
+ ;
Dropdown._jQueryInterface = function _jQueryInterface(config) {
return this.each(function () {
@@ -4478,8 +4482,8 @@
}
return parent || element.parentNode;
- }; // eslint-disable-next-line complexity
-
+ } // eslint-disable-next-line complexity
+ ;
Dropdown._dataApiKeydownHandler = function _dataApiKeydownHandler(event) {
// If not input/textarea:
@@ -4787,8 +4791,8 @@
_proto.handleUpdate = function handleUpdate() {
this._adjustDialog();
- }; // Private
-
+ } // Private
+ ;
_proto._getConfig = function _getConfig(config) {
config = _objectSpread({}, Default$3, config);
@@ -4982,11 +4986,11 @@
} else if (callback) {
callback();
}
- }; // ----------------------------------------------------------------------
+ } // ----------------------------------------------------------------------
// the following methods are used to handle overflowing modals
// todo (fat): these should probably be refactored out of modal.js
// ----------------------------------------------------------------------
-
+ ;
_proto._adjustDialog = function _adjustDialog() {
var isModalOverflowing = this._element.scrollHeight > document.documentElement.clientHeight;
@@ -5071,8 +5075,8 @@
var scrollbarWidth = scrollDiv.getBoundingClientRect().width - scrollDiv.clientWidth;
document.body.removeChild(scrollDiv);
return scrollbarWidth;
- }; // Static
-
+ } // Static
+ ;
Modal._jQueryInterface = function _jQueryInterface(config, relatedTarget) {
return this.each(function () {
@@ -5505,8 +5509,8 @@
if (this._popper !== null) {
this._popper.scheduleUpdate();
}
- }; // Protected
-
+ } // Protected
+ ;
_proto.isWithContent = function isWithContent() {
return Boolean(this.getTitle());
@@ -5552,8 +5556,8 @@
}
return title;
- }; // Private
-
+ } // Private
+ ;
_proto._getContainer = function _getContainer() {
if (this.config.container === false) {
@@ -5757,8 +5761,8 @@
this.hide();
this.show();
this.config.animation = initConfigAnimation;
- }; // Static
-
+ } // Static
+ ;
Tooltip._jQueryInterface = function _jQueryInterface(config) {
return this.each(function () {
@@ -5929,8 +5933,8 @@
this.setElementContent($tip.find(Selector$7.CONTENT), content);
$tip.removeClass(ClassName$7.FADE + " " + ClassName$7.SHOW);
- }; // Private
-
+ } // Private
+ ;
_proto._getContent = function _getContent() {
return this.element.getAttribute('data-content') || this.config.content;
@@ -5943,8 +5947,8 @@
if (tabClass !== null && tabClass.length > 0) {
$tip.removeClass(tabClass.join(''));
}
- }; // Static
-
+ } // Static
+ ;
Popover._jQueryInterface = function _jQueryInterface(config) {
return this.each(function () {
@@ -6156,8 +6160,8 @@
this._targets = null;
this._activeTarget = null;
this._scrollHeight = null;
- }; // Private
-
+ } // Private
+ ;
_proto._getConfig = function _getConfig(config) {
config = _objectSpread({}, Default$6, typeof config === 'object' && config ? config : {});
@@ -6264,8 +6268,8 @@
}).forEach(function (node) {
return node.classList.remove(ClassName$8.ACTIVE);
});
- }; // Static
-
+ } // Static
+ ;
ScrollSpy._jQueryInterface = function _jQueryInterface(config) {
return this.each(function () {
@@ -6448,8 +6452,8 @@
_proto.dispose = function dispose() {
$.removeData(this._element, DATA_KEY$9);
this._element = null;
- }; // Private
-
+ } // Private
+ ;
_proto._activate = function _activate(element, container, callback) {
var _this2 = this;
@@ -6507,8 +6511,8 @@
if (callback) {
callback();
}
- }; // Static
-
+ } // Static
+ ;
Tab._jQueryInterface = function _jQueryInterface(config) {
return this.each(function () {
@@ -6687,8 +6691,8 @@
$.removeData(this._element, DATA_KEY$a);
this._element = null;
this._config = null;
- }; // Private
-
+ } // Private
+ ;
_proto._getConfig = function _getConfig(config) {
config = _objectSpread({}, Default$7, $(this._element).data(), typeof config === 'object' && config ? config : {});
@@ -6721,8 +6725,8 @@
} else {
complete();
}
- }; // Static
-
+ } // Static
+ ;
Toast._jQueryInterface = function _jQueryInterface(config) {
return this.each(function () {
@@ -6814,5 +6818,5 @@
Object.defineProperty(exports, '__esModule', { value: true });
-})));
+}));
//# sourceMappingURL=bootstrap.bundle.js.map