MCPcopy
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

getOrCreateInstanceMethod · 0.95

Calls 1

getElementFunction · 0.90

Tested by

no test coverage detected