Permalink
Browse files

fix: send correct argument

  • Loading branch information...
1 parent 874e4d1 commit e9bfecb43d8f74a05855150fe9f9ad09ab91a1be @egonelbre committed May 12, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 fsm/fsm2.js
View
@@ -3,7 +3,9 @@ function Machine(){
}
Machine.prototype.update = function() {
- this.next && this.next(m);
+ if(this.next){
+ this.next(this);
+ }
};
tick = function(m){

0 comments on commit e9bfecb

Please sign in to comment.