Skip to content

removeAttribution can cause junk data in _attributions #1410

Closed
@tmcw

Description

If you call

map.attributionControl.removeAttribution('foo');

On a non-existent attribution, the internal attribution object has an object of the form { foo: NaN }. Ideally removeAttribution checks to see that there's a key entry before decrementing the value.

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions