These are chat archives for pozadi/kefir

2nd
May 2015
Stephan Hoyer
@StephanHoyer
May 02 2015 17:33
pretty complicated
Roman Pominov
@rpominov
May 02 2015 18:08
@StephanHoyer why?
Do you have a suggestion for a better API?
Roman Pominov
@rpominov
May 02 2015 18:15
Also note that returning unsubscribe function is optional, you need this only if you want to manage you resources properly.
Otherwise you can do simply
var stream = Kefir.stream(function(emitter) {
  scope.functionThatGetsCalledOnClick = emitter.emit;
});