MCPcopy Create free account
hub / github.com/bigskysoftware/_hyperscript / stopElementEffects

Method stopElementEffects

www/js/_hyperscript.esm.js:3514–3521  ·  view source on GitHub ↗

Stop all reactive effects owned by an element.

(element)

Source from the content-addressed store, hash-verified

3512 }
3513 /** Stop all reactive effects owned by an element. */
3514 stopElementEffects(element) {
3515 var data = element._hyperscript;
3516 if (!data || !data.effects) return;
3517 for (var effect of data.effects) {
3518 effect.stop();
3519 }
3520 delete data.effects;
3521 }
3522};
3523
3524// src/core/runtime/morph.js

Callers 1

cleanupMethod · 0.45

Calls 1

stopMethod · 0.45

Tested by

no test coverage detected