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

Add false to docu of Attribution prefix #7814

Merged
merged 1 commit into from Feb 7, 2022

Conversation

Falke-Design
Copy link
Member

Continued from #7320

Thanks to @simon04

@Falke-Design Falke-Design added the docs Improvements or additions to documentation label Nov 26, 2021
@@ -19,7 +19,7 @@ export var Attribution = Control.extend({
options: {
position: 'bottomright',

// @option prefix: String = 'Leaflet'
// @option prefix: String|false = 'Leaflet'
Copy link
Collaborator

Choose a reason for hiding this comment

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

Technically it looks like any falsy value is will trigger this behavior so '', undefined, null or 0 as well. Is an explicit boolean what we want here?

Copy link
Collaborator

Choose a reason for hiding this comment

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

All mentioned values coerce to false, so why not make it explicit.

@mourner mourner merged commit 47c5d37 into Leaflet:main Feb 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants