ContentType shares EventDispatcher instance

Description

H5P.ContentType shares the EventDispatcher instance with everyone that inherits from it. This means that if someone is listening to an instance that has this EventDispatcher it will get events triggered by all of the instances that are extended from H5P.ContentType.
We have seen that this is a big problem, for instance in CP with two IV, if one IVHotspot triggers a time-code jump it will be dispatched to all IVs that listen to events from ANY IVHotspot instance.

Environment

None

Acceptance Criteria

  • Fix ContentType EventDispatcher inheritance system

Status

Assignee

Unassigned

Reporter

Thomas Marstrander

Labels

None

Funding

None

Code reviewer

None

Released

None

Time tracking

16h

Fix versions

None

Sprint

None

Priority

High