1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-11 08:04:59 +02:00

Release v5.1.2 (#35114)

This commit is contained in:
XhmikosR
2021-10-05 18:50:18 +03:00
committed by GitHub
parent a2aa8c5a6e
commit 5ecef8ac01
113 changed files with 881 additions and 789 deletions

View File

@@ -1,5 +1,5 @@
/*!
* Bootstrap base-component.js v5.1.1 (https://getbootstrap.com/)
* Bootstrap base-component.js v5.1.2 (https://getbootstrap.com/)
* Copyright 2011-2021 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
*/
@@ -7,16 +7,16 @@
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('./dom/data.js'), require('./dom/event-handler.js')) :
typeof define === 'function' && define.amd ? define(['./dom/data', './dom/event-handler'], factory) :
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.Base = factory(global.Data, global.EventHandler));
}(this, (function (Data, EventHandler) { 'use strict';
})(this, (function (Data, EventHandler) { 'use strict';
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
const _interopDefaultLegacy = e => e && typeof e === 'object' && 'default' in e ? e : { default: e };
var Data__default = /*#__PURE__*/_interopDefaultLegacy(Data);
var EventHandler__default = /*#__PURE__*/_interopDefaultLegacy(EventHandler);
const Data__default = /*#__PURE__*/_interopDefaultLegacy(Data);
const EventHandler__default = /*#__PURE__*/_interopDefaultLegacy(EventHandler);
/**
* --------------------------------------------------------------------------
* Bootstrap (v5.1.1): util/index.js
* Bootstrap (v5.1.2): util/index.js
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
* --------------------------------------------------------------------------
*/
@@ -113,7 +113,7 @@
/**
* --------------------------------------------------------------------------
* Bootstrap (v5.1.1): base-component.js
* Bootstrap (v5.1.2): base-component.js
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
* --------------------------------------------------------------------------
*/
@@ -123,7 +123,7 @@
* ------------------------------------------------------------------------
*/
const VERSION = '5.1.1';
const VERSION = '5.1.2';
class BaseComponent {
constructor(element) {
@@ -134,12 +134,12 @@
}
this._element = element;
Data__default['default'].set(this._element, this.constructor.DATA_KEY, this);
Data__default.default.set(this._element, this.constructor.DATA_KEY, this);
}
dispose() {
Data__default['default'].remove(this._element, this.constructor.DATA_KEY);
EventHandler__default['default'].off(this._element, this.constructor.EVENT_KEY);
Data__default.default.remove(this._element, this.constructor.DATA_KEY);
EventHandler__default.default.off(this._element, this.constructor.EVENT_KEY);
Object.getOwnPropertyNames(this).forEach(propertyName => {
this[propertyName] = null;
});
@@ -152,7 +152,7 @@
static getInstance(element) {
return Data__default['default'].get(getElement(element), this.DATA_KEY);
return Data__default.default.get(getElement(element), this.DATA_KEY);
}
static getOrCreateInstance(element, config = {}) {
@@ -179,5 +179,5 @@
return BaseComponent;
})));
}));
//# sourceMappingURL=base-component.js.map