Skip to content

Commit

Permalink
Propagate changes correctly (thanks @kentaromiura)
Browse files Browse the repository at this point in the history
  • Loading branch information
arian committed Jan 30, 2013
1 parent fb11dce commit c794849
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Expand Up @@ -25,9 +25,9 @@ Rx.prototype.get = function(){

Rx.prototype.update = function(){
if (!this.action) return this;
this.value = this.action.apply(this, this.dependencies.map(function(dep){
this.set(this.action.apply(this, this.dependencies.map(function(dep){
return dep.get();
}).concat([this.value]).concat(slice.call(arguments)));
}).concat([this.value]).concat(slice.call(arguments))));
return this;
};

Expand Down

1 comment on commit c794849

@kentaromiura
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Please sign in to comment.