MCPcopy
hub / github.com/e-oj/Magic-Grid / getReady

Method getReady

src/index.js:219–229  ·  view source on GitHub ↗

* Periodically checks that all items * have been loaded in the dom. Calls * this.listen() once all the items are * present. * * @private

()

Source from the content-addressed store, hash-verified

217 * @private
218 */
219 getReady () {
220 let interval = setInterval(() => {
221 this.container = document.querySelector(this.containerClass);
222
223 if (this.ready()) {
224 clearInterval(interval);
225
226 this.listen();
227 }
228 }, 100);
229 }
230
231 observeContainerResize() {
232 if (this.resizeObserver) return;

Callers 1

listenMethod · 0.95

Calls 2

readyMethod · 0.95
listenMethod · 0.95

Tested by

no test coverage detected