I'm playing with the Cycle.js framework and have created a popup/overlay as a component.
I have isolated the popup-component. The sources.DOM which I would normally use as the source of events is limited to the popup dom only.
Is there a cycle.js-way for the component to detect clicks outside it? Or should I just resort to attaching listeners to the document?