Both the Task and Bench objects extend the EventTarget object. So you can attach a listeners to different types of events to each class instance using the universal addEventListener and removeEventListener methods.
Task
Bench
EventTarget
addEventListener
removeEventListener
A method called when the event is dispatched.
Both the
TaskandBenchobjects extend theEventTargetobject. So you can attach a listeners to different types of events to each class instance using the universaladdEventListenerandremoveEventListenermethods.