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:
@@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user