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

Method _getConfig

src/js/util/backdrop.js:102–112  ·  view source on GitHub ↗
(config)

Source from the content-addressed store, hash-verified

100 }
101
102 _getConfig(config) {
103 config = {
104 ...Default,
105 ...(typeof config === "object" ? config : {}),
106 };
107
108 // use getElement() with the default "body" to get a fresh Element on each instantiation
109 config.rootElement = getElement(config.rootElement);
110 typeCheckConfig(NAME, config, DefaultType);
111 return config;
112 }
113
114 _append() {
115 if (this._isAppended) {

Callers 2

constructorMethod · 0.95
updateMethod · 0.95

Calls 2

getElementFunction · 0.90
typeCheckConfigFunction · 0.90

Tested by

no test coverage detected