Answer the question
In order to leave comments, you need to log in
How to resolve the conflict between Yandex maps and the Map data structure?
Good afternoon. Faced such a problem
https://monosnap.com/direct/BUqfdvVcn7jZ6CTB6yMtf0...
The site is on Bitrix, but the error does not apply to them. They, as I understand it, use the standard Map structure
https://developer.mozilla.org/en-US/docs/Web/JavaS...
something like this
const globalListeners = (globalEvents && globalEvents.eventsMap.get(fullEventName)) || newmap();
targetListeners = (targetEvents && targetEvents.eventsMap.get(fullEventName)) || newmap();
const listeners = [...globalListeners.values(), ...targetListeners.values()];
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question