1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-07 14:16:47 +02:00

Move VERSION to BaseComponent (#32254)

This commit is contained in:
Rohit Sharma
2020-11-25 12:43:33 +05:30
committed by XhmikosR
parent 9eb9d02084
commit f6a8733741
12 changed files with 12 additions and 55 deletions

View File

@@ -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
}