docs: address maintainer review for PR #1047

This commit is contained in:
Rudy Celekli committed 2026-10-14 20:12:42 -04:00
1 parent 5889d35327
commit bbbdd0aeba
2 files changed
+3 -6

No files matched your search

+1 -1
View File
@@ -142,7 +142,7 @@ export class MapSourceController {
if (this._destroyed || !this._subscribers.size) return;
const state = this.getState();
for (const listener of [...this._subscribers]) {
if (this._destroyed || !this._subscribers.has(listener)) continue;
if (!this._subscribers.has(listener)) continue;
try {
listener(state);
} catch (error) {