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

Check if 'attributionElement' exists. Fixes #1077 #1078

Merged
merged 1 commit into from
Mar 30, 2018

Conversation

octavm
Copy link
Contributor

@octavm octavm commented Mar 28, 2018

When doing _updateMapAttribution, make sure to check if attributionElement actually exists to avoid "TypeError: Cannot set property 'innerHTML' of null". Fixes #1077

When doing _updateMapAttribution, make sure to check if attributionElement actually exists to avoid "TypeError: Cannot set property 'innerHTML' of null". Fixes Esri#1077
@jgravois
Copy link
Contributor

i'm still not sure why a developer would explicitly nullify the attribution for our basemap specifically to avoid giving credit where credit is due, but there is no harm in trapping for it.

thanks @octavm.

@jgravois jgravois merged commit 5730901 into Esri:master Mar 30, 2018
@octavm
Copy link
Contributor Author

octavm commented Apr 3, 2018

Glad I could help :-)

jgravois added a commit that referenced this pull request Jul 13, 2018
jgravois added a commit to jgravois/esri-leaflet that referenced this pull request Apr 23, 2022
Check if 'attributionElement' exists. Fixes Esri#1077
jgravois added a commit to jgravois/esri-leaflet that referenced this pull request Apr 23, 2022
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