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

Method _containsTarget

www/js/_hyperscript-max.js:3310–3318  ·  view source on GitHub ↗

Check if any of the mutated elements are inside root.

(root, mutated)

Source from the content-addressed store, hash-verified

3308 }
3309 /** Check if any of the mutated elements are inside root. */
3310 _containsTarget(root, mutated) {
3311 if (mutated instanceof Set) {
3312 for (var el of mutated) {
3313 if (root.contains(el)) return true;
3314 }
3315 return false;
3316 }
3317 return root.contains(mutated);
3318 }
3319 /**
3320 * Run all pending effects. Called once per microtask batch.
3321 * 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