MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / getContainer

Function getContainer

src/sidebarApps/sidebarApp.js:180–188  ·  view source on GitHub ↗

* Gets the container or sets it if it's not set. * @param {HTMLElement} $el * @returns {HTMLElement}

($el)

Source from the content-addressed store, hash-verified

178 * @returns {HTMLElement}
179 */
180function getContainer($el) {
181 const res = $container;
182
183 if ($el) {
184 $container = $el;
185 }
186
187 return res || $sidebar.get(".container");
188}

Callers 1

activeMethod · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected