A Mixin that support event targets retargeting so the element listens on a set node instead of the default
npm install @advanced-rest-client/events-target-mixin --save
In a web component
The element listens for events that bubbles through #target element.
In a class that does not extend HTMLElement interface
When constructing the object call the
_eventsTargetChanged() method with
an object that is the default events target. If argument is not set then
is used instead.
Because such class has no lifecycle methods, you should call
manually when the instance should no longer listen on the target object. Skipping
this part may cause the GC to not clean the instance from memory.
git clone https://github.com/advanced-rest-client/events-target-mixincd events-target-mixinnpm install
Running the tests