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

Update attribution_control.js #8082

Merged
merged 4 commits into from
Mar 29, 2019
Merged

Update attribution_control.js #8082

merged 4 commits into from
Mar 29, 2019

Conversation

poletani
Copy link
Contributor

fix #8047

Update attribution_control.js

Launch Checklist

  • briefly describe the changes in this PR
    saves previous attribution string and compare it with the new one if there is any change. In case there isn't, attribution string isn't replaced (by innerHTML setter)
  • write tests for all new functionality
    tested with the extracted build instead of 0.53.1 - number of DOM nodes remains the same
  • document any changes to public APIs
    no changes

fix #8047

Update attribution_control.js

optimalization of fix
Copy link
Member

@mourner mourner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good, pending fixing linter errors. Also, let's rename the property to _attribHTML to make it clear that it's HTML and that it's "private".

change variable names String -> HTML
fix linter errors
@poletani
Copy link
Contributor Author

I've changed property names and fixed linter errors. Is it OK now?

@mourner
Copy link
Member

mourner commented Mar 28, 2019

Nope, lint still failing. You can check locally by running npm run lint.

@poletani
Copy link
Contributor Author

Ooops, I am sorry, another attempt.
I made a --fix, I hope it's correct now...

fix === linter error, remove unwanted flow monitoring added by linter fix
@mourner mourner merged commit 79c3b98 into mapbox:master Mar 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants