Hi,
I have an observer and I call it like this:
myobserver.observe(mydiv, {childList : true, subtree : true, attributes : true});
I need to fetch the observed element, something like this
myobserver = new MutationObserver((mymutations) => {
console.log(observed); //should output "mydiv" always regardless of the mutation
});
I tried mymutations.target but that wont do because it will get me a different element if the mutation is in one of the children. Is there any way to do it?
Thank you