- Create a custom event name, which the listener is attached to.
- Listen to a DOM event, and have the listener fire the CE.
- When the CE handlers are all removed, remove the DOM event handlers.
- If the DOM event handlers are removed, remove the CE handler.