mirror of
https://github.com/tenrok/bootstrap.git
synced 2026-05-30 15:24:08 +03:00
Accept argument of different types in the getInstance method (#34333)
This commit is contained in:
@@ -48,7 +48,7 @@ class BaseComponent {
|
||||
/** Static */
|
||||
|
||||
static getInstance(element) {
|
||||
return Data.get(element, this.DATA_KEY)
|
||||
return Data.get(getElement(element), this.DATA_KEY)
|
||||
}
|
||||
|
||||
static getOrCreateInstance(element, config = {}) {
|
||||
|
||||
Reference in New Issue
Block a user