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

Method _containsTarget

www/js/_hyperscript.esm.js:3309–3317  ·  view source on GitHub ↗

Check if any of the mutated elements are inside root.

(root, mutated)

Source from the content-addressed store, hash-verified

3307 }
3308 /** Check if any of the mutated elements are inside root. */
3309 _containsTarget(root, mutated) {
3310 if (mutated instanceof Set) {
3311 for (var el of mutated) {
3312 if (root.contains(el)) return true;
3313 }
3314 return false;
3315 }
3316 return root.contains(mutated);
3317 }
3318 /**
3319 * Run all pending effects. Called once per microtask batch.
3320 * Effects that re-trigger during this run are queued for the next batch.

Callers 1

_scheduleQueryEffectsMethod · 0.45

Calls 1

containsMethod · 0.45

Tested by

no test coverage detected