diff options
| author | Rohit Sharma <[email protected]> | 2020-11-25 12:43:33 +0530 |
|---|---|---|
| committer | XhmikosR <[email protected]> | 2020-11-29 20:58:26 +0200 |
| commit | f6a87337416f900773268db9fc4307538c7daf88 (patch) | |
| tree | 7861690eb460eda9d423dabeb1ce91e609669143 /js/src/base-component.js | |
| parent | 9eb9d02084dc914e614e8844e3ffdee4d0a25126 (diff) | |
| download | bootstrap-f6a87337416f900773268db9fc4307538c7daf88.tar.xz bootstrap-f6a87337416f900773268db9fc4307538c7daf88.zip | |
Move `VERSION` to BaseComponent (#32254)
Diffstat (limited to 'js/src/base-component.js')
| -rw-r--r-- | js/src/base-component.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/js/src/base-component.js b/js/src/base-component.js index b1b85a4ee..e9b4de669 100644 --- a/js/src/base-component.js +++ b/js/src/base-component.js @@ -7,6 +7,14 @@ import Data from './dom/data' +/** + * ------------------------------------------------------------------------ + * Constants + * ------------------------------------------------------------------------ + */ + +const VERSION = '5.0.0-alpha3' + class BaseComponent { constructor(element) { if (!element) { @@ -28,6 +36,10 @@ class BaseComponent { return Data.getData(element, this.DATA_KEY) } + static get VERSION() { + return VERSION + } + static get DATA_KEY() { return null } |
