mutation observers - Is there a way to detect which MutationObserver a callback was called from? -
if have single callback function , 2 mutationobservers 2 different dom nodes, there way tell observer triggered callback when called? work callback needs perform substantially similar, creating 1 each observer seems undesirable.
the specific mutationobserver supplied 2nd argument callback. see mdn documentation.
Comments
Post a Comment