Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/mdbootstrap/TW-Elements
/ getInstance
Method
getInstance
src/js/base-component.js:40–42 ·
view source on GitHub ↗
Static
(element)
Source
from the content-addressed store, hash-verified
38
/** Static */
39
40
static getInstance(element) {
41
return
Data.getData(getElement(element), this.DATA_KEY);
42
}
43
44
static getOrCreateInstance(element, config = {}) {
45
return
(
Callers
1
getOrCreateInstance
Method · 0.95
Calls
1
getElement
Function · 0.90
Tested by
no test coverage detected