The methods for addEventListener/removeEventListener/dispatchEvent forward to destObj.bind/unbind/trigger(). When destObj is a prototype, this means events are bound to the class, not the instance.
Additionally, dispatchEvent does not pass variable arguments along to .trigger().
The methods for addEventListener/removeEventListener/dispatchEvent forward to
destObj.bind/unbind/trigger()
. When destObj is a prototype, this means events are bound to the class, not the instance.Additionally, dispatchEvent does not pass variable arguments along to .trigger().