Open bramus opened 3 weeks ago
Furthermore, to be in line with MutationObserver
, the attach
method should be renamed to observe
and a bunch of things should move around.
For reference:
const observer = new MutationObserver(callback);
observer.observe(target, options);
Now:
But maybe it’s better that this became the following? Then you can have one observer watch multiple elements.
If being able to observer multiple elements is the only goal, though, maybe the following is also OK?