MCPcopy Create free account
hub / github.com/neomjs/neo / construct

Method construct

src/component/MagicMoveText.mjs:214–225  ·  view source on GitHub ↗

* The constructor registers a resize listener to invalidate the measurement cache when the component size changes. * @param {Object} config

(config)

Source from the content-addressed store, hash-verified

212 * @param {Object} config
213 */
214 construct(config) {
215 super.construct(config);
216
217 let me = this;
218
219 me.addDomListeners({
220 resize: me.onResize,
221 scope : me
222 });
223
224 me.app?.on('visibilitychange', me.onVisibilityChange, me)
225 }
226
227 /**
228 * Registers or unregisters this component with the global ResizeObserver addon.

Callers

nothing calls this directly

Calls 2

addDomListenersMethod · 0.80
onMethod · 0.80

Tested by

no test coverage detected