Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MutationObserver is not defined #424

Closed
maxfrigge opened this issue Feb 17, 2016 · 2 comments

Comments

@maxfrigge
Copy link

commented Feb 17, 2016

It seems that standard doesn't recognise the MutationObserver class to be globally available when writing browser JS.

What's the recommended way of dealing with this?

@rstacruz

This comment has been minimized.

Copy link
Member

commented Feb 17, 2016

like this: (preferred)

window.MutationObserver

or

/* eslint-env browser */

or

/* global MutationObserver */

from the rules:

Always prefix browser globals with window – except document and navigator are okay

@rstacruz rstacruz closed this Feb 17, 2016

@maxfrigge

This comment has been minimized.

Copy link
Author

commented Feb 18, 2016

Thanks a billion!

@lock lock bot locked as resolved and limited conversation to collaborators May 10, 2018

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
2 participants
You can’t perform that action at this time.