Currently embed.addEventListenerreplaces the listener registered for that event type.
Update eventListeners to be eventListenersArrayMap, so that it contains an array of listeners for each event type.
Update embed.addEventListener, so that it adds the event listener to the list of listeners registered for that event type.
Add a removeEventListener method that, given an event name and a listener, removes the listener from the the list of listeners registered for that event type.
embed.addEventListener
replaces the listener registered for that event type.eventListeners
to beeventListenersArrayMap
, so that it contains an array of listeners for each event type.embed.addEventListener
, so that it adds the event listener to the list of listeners registered for that event type.removeEventListener
method that, given an event name and a listener, removes the listener from the the list of listeners registered for that event type.