These are chat archives for pozadi/kefir

24th
May 2015
Ulric Wilfred
@shamansir
May 24 2015 21:06
When I call <stream>.filterBy(otherStream).onValue(function(...) { … }); with latest Kefir, I get:
TypeError: this._getInitialCurrent is not a function
TypeError: this._getInitialCurrent is not a function
    at AnonymousObservable._onActivation (file://localhost/Users/shamansir/Workspace/rpd/vendor/kefir.min.js:1333:29)
    at AnonymousObservable._setActive (file://localhost/Users/shamansir/Workspace/rpd/vendor/kefir.min.js:616:15)
    at AnonymousObservable._on (file://localhost/Users/shamansir/Workspace/rpd/vendor/kefir.min.js:855:13)
    at AnonymousObservable.onAny (file://localhost/Users/shamansir/Workspace/rpd/vendor/kefir.min.js:691:18)
    at AnonymousObservable._onActivation (file://localhost/Users/shamansir/Workspace/rpd/vendor/kefir.min.js:4939:26)
    at AnonymousObservable._setActive (file://localhost/Users/shamansir/Workspace/rpd/vendor/kefir.min.js:616:15)
    at AnonymousObservable._on (file://localhost/Users/shamansir/Workspace/rpd/vendor/kefir.min.js:664:13)
    at AnonymousObservable.onValue (file://localhost/Users/shamansir/Workspace/rpd/vendor/kefir.min.js:682:18)
Roman Pominov
@rpominov
May 24 2015 21:11
do you call .toProperty somewhere?
Ulric Wilfred
@shamansir
May 24 2015 21:12
yes, for the otherStream, a bit before.
Roman Pominov
@rpominov
May 24 2015 21:12
notice, that it accepts a function now
you, probably, pass a simple value to it
Ulric Wilfred
@shamansir
May 24 2015 21:14
yeah, exactly! thanks! but so it breaks API from 1.1.0, then just to notice :)
Roman Pominov
@rpominov
May 24 2015 21:15
it was introduced in 1.0.0
i think)
oh, in 2.0.0 i mean
Ulric Wilfred
@shamansir
May 24 2015 21:16
I just replaced my previous version (1.1.0) with a latest one, and got tests failing due to this)
Roman Pominov
@rpominov
May 24 2015 21:17
yep, so the breaking change is in 2.0.0
Ulric Wilfred
@shamansir
May 24 2015 21:18
and there are still several mentions of previous format in the docs, btw, like .toProperty(0) in property.changes() example
Roman Pominov
@rpominov
May 24 2015 21:19
thanks, will hunt them down)
Ulric Wilfred
@shamansir
May 24 2015 21:20
ok, got it, so I will change it to callback. and probably it could be much more useful for me this way, with a callback.
thank you too)