paldepind / flyd

The minimalistic but powerful, modular, functional reactive programming library in JavaScript.
MIT License
1.56k stars 85 forks source link

circular reference potential & .off() #153

Closed puppetmaster3 closed 7 years ago

puppetmaster3 commented 7 years ago

If I have a stream handled by a class instance, and I delete that class - would that create a circular reference? ie, the 'listener' is referenced and will not be deleted.

Also, Is there an .off(....) - opposite from .on(..., that stops 'listening' . If I can only add and never remove, that would be a deal breaker. (ex of .off https://rpominov.github.io/kefir/#active-state )

puppetmaster3 commented 7 years ago

reduced to one question