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

Popular posts from this blog

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

Android Gson.fromJson error -