MCPcopy
hub / github.com/mdbootstrap/TW-Elements / getOrCreateInstance

Method getOrCreateInstance

src/js/base-component.js:44–49  ·  view source on GitHub ↗
(element, config = {})

Source from the content-addressed store, hash-verified

42 }
43
44 static getOrCreateInstance(element, config = {}) {
45 return (
46 this.getInstance(element) ||
47 new this(element, typeof config === "object" ? config : null)
48 );
49 }
50
51 static get VERSION() {
52 return VERSION;

Callers

nothing calls this directly

Calls 1

getInstanceMethod · 0.95

Tested by

no test coverage detected