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

Method _containsTarget

src/core/runtime/reactivity.js:439–447  ·  view source on GitHub ↗

Check if any of the mutated elements are inside root.

(root, mutated)

Source from the content-addressed store, hash-verified

437
438 /** Check if any of the mutated elements are inside root. */
439 _containsTarget(root, mutated) {
440 if (mutated instanceof Set) {
441 for (var el of mutated) {
442 if (root.contains(el)) return true;
443 }
444 return false;
445 }
446 return root.contains(mutated);
447 }
448
449 /**
450 * Run all pending effects. Called once per microtask batch.

Callers 1

_scheduleQueryEffectsMethod · 0.95

Calls 1

containsMethod · 0.45

Tested by

no test coverage detected