Closed aindlq closed 9 years ago
Most of methods in Kefir are not bound to their context to minimize memory footprint. So yes, you have to do .bind
when passing it somewhere, but I don't see it as a workaround, it's just a normal thing you have to do in JavaScript when working with most of libraries.
Lets say we have some simple high-order function and Emitter. And we want to use them together like:
But it fails with exception:
The workaround is to bind this for emit, but this kind of annoying: