diff options
author | Mark Otto <markdotto@gmail.com> | 2017-09-13 08:24:15 +0300 |
---|---|---|
committer | Mark Otto <markdotto@gmail.com> | 2017-09-13 08:24:15 +0300 |
commit | 75d435f76e48b19007495a02e79b0d41f2690361 (patch) | |
tree | 56fd67d5a60a1fe5442c969d29918db4f463b827 /dist/js/bootstrap.bundle.js | |
parent | 5becfa6fb1c04b57020737d7c352404e72766a0a (diff) |
dist
Diffstat (limited to 'dist/js/bootstrap.bundle.js')
-rw-r--r-- | dist/js/bootstrap.bundle.js | 138 |
1 files changed, 68 insertions, 70 deletions
diff --git a/dist/js/bootstrap.bundle.js b/dist/js/bootstrap.bundle.js index 4db25b04bf..9a64fd02fd 100644 --- a/dist/js/bootstrap.bundle.js +++ b/dist/js/bootstrap.bundle.js @@ -33,10 +33,9 @@ var Util = function () { MozTransition: 'transitionend', OTransition: 'oTransitionEnd otransitionend', transition: 'transitionend' - }; - // shoutout AngusCroll (https://goo.gl/pxwQGp) - function toType(obj) { + // shoutout AngusCroll (https://goo.gl/pxwQGp) + };function toType(obj) { return {}.toString.call(obj).match(/\s([a-zA-Z]+)/)[1].toLowerCase(); } @@ -256,14 +255,14 @@ var Alert = function () { ALERT: 'alert', FADE: 'fade', SHOW: 'show' - }; - /** - * ------------------------------------------------------------------------ - * Class Definition - * ------------------------------------------------------------------------ - */ + /** + * ------------------------------------------------------------------------ + * Class Definition + * ------------------------------------------------------------------------ + */ + }; var Alert = function () { function Alert(element) { classCallCheck(this, Alert); @@ -436,14 +435,14 @@ var Button = function () { var Event = { CLICK_DATA_API: 'click' + EVENT_KEY + DATA_API_KEY, FOCUS_BLUR_DATA_API: 'focus' + EVENT_KEY + DATA_API_KEY + ' ' + ('blur' + EVENT_KEY + DATA_API_KEY) - }; - /** - * ------------------------------------------------------------------------ - * Class Definition - * ------------------------------------------------------------------------ - */ + /** + * ------------------------------------------------------------------------ + * Class Definition + * ------------------------------------------------------------------------ + */ + }; var Button = function () { function Button(element) { classCallCheck(this, Button); @@ -645,14 +644,14 @@ var Carousel = function () { INDICATORS: '.carousel-indicators', DATA_SLIDE: '[data-slide], [data-slide-to]', DATA_RIDE: '[data-ride="carousel"]' - }; - /** - * ------------------------------------------------------------------------ - * Class Definition - * ------------------------------------------------------------------------ - */ + /** + * ------------------------------------------------------------------------ + * Class Definition + * ------------------------------------------------------------------------ + */ + }; var Carousel = function () { function Carousel(element, config) { classCallCheck(this, Carousel); @@ -1129,14 +1128,14 @@ var Collapse = function () { var Selector = { ACTIVES: '.show, .collapsing', DATA_TOGGLE: '[data-toggle="collapse"]' - }; - /** - * ------------------------------------------------------------------------ - * Class Definition - * ------------------------------------------------------------------------ - */ + /** + * ------------------------------------------------------------------------ + * Class Definition + * ------------------------------------------------------------------------ + */ + }; var Collapse = function () { function Collapse(element, config) { classCallCheck(this, Collapse); @@ -1404,7 +1403,7 @@ var Collapse = function () { $(document).on(Event.CLICK_DATA_API, Selector.DATA_TOGGLE, function (event) { // preventDefault only for <a> elements (which change the URL) not inside the collapsible element - if (event.target.tagName === 'A' && !$.contains(this, event.target)) { + if (event.currentTarget.tagName === 'A') { event.preventDefault(); } @@ -3951,14 +3950,14 @@ var Dropdown = function () { var DefaultType = { offset: '(number|string)', flip: 'boolean' - }; - /** - * ------------------------------------------------------------------------ - * Class Definition - * ------------------------------------------------------------------------ - */ + /** + * ------------------------------------------------------------------------ + * Class Definition + * ------------------------------------------------------------------------ + */ + }; var Dropdown = function () { function Dropdown(element, config) { classCallCheck(this, Dropdown); @@ -4102,10 +4101,9 @@ var Dropdown = function () { enabled: this._config.flip } } - }; - // Disable Popper.js for Dropdown in Navbar - if (this._inNavbar) { + // Disable Popper.js for Dropdown in Navbar + };if (this._inNavbar) { popperConfig.modifiers.applyStyle = { enabled: !this._inNavbar }; @@ -4358,14 +4356,14 @@ var Modal = function () { FIXED_CONTENT: '.fixed-top, .fixed-bottom, .is-fixed, .sticky-top', STICKY_CONTENT: '.sticky-top', NAVBAR_TOGGLER: '.navbar-toggler' - }; - /** - * ------------------------------------------------------------------------ - * Class Definition - * ------------------------------------------------------------------------ - */ + /** + * ------------------------------------------------------------------------ + * Class Definition + * ------------------------------------------------------------------------ + */ + }; var Modal = function () { function Modal(element, config) { classCallCheck(this, Modal); @@ -4973,14 +4971,14 @@ var Tooltip = function () { FOCUS: 'focus', CLICK: 'click', MANUAL: 'manual' - }; - /** - * ------------------------------------------------------------------------ - * Class Definition - * ------------------------------------------------------------------------ - */ + /** + * ------------------------------------------------------------------------ + * Class Definition + * ------------------------------------------------------------------------ + */ + }; var Tooltip = function () { function Tooltip(element, config) { classCallCheck(this, Tooltip); @@ -5409,18 +5407,18 @@ var Tooltip = function () { Tooltip.prototype._getConfig = function _getConfig(config) { config = $.extend({}, this.constructor.Default, $(this.element).data(), config); - if (config.delay && typeof config.delay === 'number') { + if (typeof config.delay === 'number') { config.delay = { show: config.delay, hide: config.delay }; } - if (config.title && typeof config.title === 'number') { + if (typeof config.title === 'number') { config.title = config.title.toString(); } - if (config.content && typeof config.content === 'number') { + if (typeof config.content === 'number') { config.content = config.content.toString(); } @@ -5604,14 +5602,14 @@ var Popover = function () { FOCUSOUT: 'focusout' + EVENT_KEY, MOUSEENTER: 'mouseenter' + EVENT_KEY, MOUSELEAVE: 'mouseleave' + EVENT_KEY - }; - /** - * ------------------------------------------------------------------------ - * Class Definition - * ------------------------------------------------------------------------ - */ + /** + * ------------------------------------------------------------------------ + * Class Definition + * ------------------------------------------------------------------------ + */ + }; var Popover = function (_Tooltip) { inherits(Popover, _Tooltip); @@ -5803,14 +5801,14 @@ var ScrollSpy = function () { var OffsetMethod = { OFFSET: 'offset', POSITION: 'position' - }; - /** - * ------------------------------------------------------------------------ - * Class Definition - * ------------------------------------------------------------------------ - */ + /** + * ------------------------------------------------------------------------ + * Class Definition + * ------------------------------------------------------------------------ + */ + }; var ScrollSpy = function () { function ScrollSpy(element, config) { var _this = this; @@ -6104,14 +6102,14 @@ var Tab = function () { DATA_TOGGLE: '[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]', DROPDOWN_TOGGLE: '.dropdown-toggle', DROPDOWN_ACTIVE_CHILD: '> .dropdown-menu .active' - }; - /** - * ------------------------------------------------------------------------ - * Class Definition - * ------------------------------------------------------------------------ - */ + /** + * ------------------------------------------------------------------------ + * Class Definition + * ------------------------------------------------------------------------ + */ + }; var Tab = function () { function Tab(element) { classCallCheck(this, Tab); |