2
0
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:
Jeremy Jackson
2021-06-29 09:45:45 -05:00
committed by GitHub
parent b00355de4b
commit d314466a4d
2 changed files with 15 additions and 1 deletions
+1 -1
View File
@@ -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 = {}) {