stopWatching function exported

Last updated: 2026-03-04T23:21:38.393Z

Metrics

LOC: 17 Complexity: 4 Params: 0

Signature

stopWatching(): : void

Summary

Stops watching the DOM

Source Code

export function stopWatching(): void {
  if (observer) {
    observer.disconnect();
    observer = null;
  }
  for (const so of shadowObservers) {
    so.disconnect();
  }
  shadowObservers = [];
  if (debounceTimer) {
    clearTimeout(debounceTimer);
    debounceTimer = null;
  }
  isWatching = false;
  onNewFieldsCallback = null;
  log.debug("DOM watcher stopped");
}

No outgoing dependencies.

Impact (Incoming)

graph LR stopWatching["stopWatching"] FillableElement["FillableElement"] FillableElement -->|uses| stopWatching style stopWatching fill:#dbeafe,stroke:#2563eb,stroke-width:2px click stopWatching "87c0ee2928cf307b.html" click FillableElement "2ecf5aaac3f668a8.html"
SourceType
FillableElement uses