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

fix(core): replace references to obsolete addListener/removeListener #4221

Merged
merged 1 commit into from
Sep 12, 2023

Conversation

peitschie
Copy link
Contributor

As per https://developer.mozilla.org/en-US/docs/Web/API/MediaQueryList

Not a big deal... just produces some linting warnings for me in my resulting package 🙂

@peitschie
Copy link
Contributor Author

Updated.. I didn't read the MDN article closely enough 😓

addListener() Deprecated
Adds to the MediaQueryList a callback which is invoked whenever the media query status—whether or not the document matches the media queries in the list—changes. This method exists primarily for backward compatibility; if possible, you should instead use addEventListener() to watch for the change event.

@nolimits4web nolimits4web merged commit 4430722 into framework7io:master Sep 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants