Module: Dommy::Internal::ObservableCallback
- Included in:
- Dommy::IntersectionObserver, PerformanceObserver, ResizeObserver
- Defined in:
- lib/dommy/internal/observable_callback.rb
Overview
Shared callback-invocation contract for the observer trio (IntersectionObserver / ResizeObserver / PerformanceObserver).
Observers accept either a JS-bridge object (anything responding
to __js_call__("call", args)) or a plain Ruby Proc. The
invocation order here matches how the JS bridge wires user code
into the polyfill — try the bridge first, then fall back to a
native callable.