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

Method _containsTarget

www/js/_hyperscript.js:3311–3319  ·  view source on GitHub ↗

Check if any of the mutated elements are inside root.

(root, mutated)

Source from the content-addressed store, hash-verified

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