Skip to content

Replace DomUtil.hasClass() with classList.contains() - #8727

Merged
jonkoops merged 1 commit into
mainfrom
remove-domutil-hasclass
Dec 22, 2022
Merged

jonkoops merged 1 commit into
mainfrom
remove-domutil-hasclass

Conversation

@jonkoops

Copy link
Copy Markdown
Collaborator

Removes the DomUtil.hasClass() function and replaces it with the standard classList.contains() method. DomUtil.hasClass() was a polyfill, which is no longer required now that we have raised our target browsers.

This also remove DomUtil.hasClass() as an API, thus this is a breaking change. See #8685 for more background information.

@jonkoops
jonkoops merged commit e68f586 into main Dec 22, 2022
@jonkoops
jonkoops deleted the remove-domutil-hasclass branch December 22, 2022 15:36
@jonkoops jonkoops added the api label Dec 22, 2022
theGOTOguy pushed a commit to theGOTOguy/Leaflet that referenced this pull request Dec 22, 2022
simon04 added a commit to perliedman/leaflet-control-geocoder that referenced this pull request Jan 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants