Skip to content

Commit

Permalink
fix stream onValue
Browse files Browse the repository at this point in the history
  • Loading branch information
iofjuupasli committed Nov 27, 2014
1 parent bd8571e commit 59ef5a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions KefirConnect.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
var mixin = {};
mixin.componentDidMount = function () {
this.subscriptions = this.subscriptions || [];
var handler = function () {
this.setState(keyValue(statePropertyName, observable._current));
var handler = function (value) {
this.setState(keyValue(statePropertyName, value));
}.bind(this);
this.subscriptions.push(handler);
observable.onValue(handler);
Expand Down

0 comments on commit 59ef5a8

Please sign in to comment.