Permalink
Browse files

Propagate changes correctly (thanks @kentaromiura)

  • Loading branch information...
1 parent fb11dce commit c794849420fc8584c20a4fef34a01cffc593d768 @arian committed Jan 30, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 index.js
View
4 index.js
@@ -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;
};

1 comment on commit c794849

Please sign in to comment.