diff options
author | Casey Dahlin <cdahlin@redhat.com> | 2008-10-03 17:52:36 -0400 |
---|---|---|
committer | Casey Dahlin <cdahlin@redhat.com> | 2008-10-03 17:52:36 -0400 |
commit | 1e8a7eb0bd2b0ca1022d86680ac6a697fe74d454 (patch) | |
tree | 2f919106ace2370d36b6d598390ef7de02d6e31e /state.rb | |
parent | fd3735a1f6b6ccdfde1856116e001c3c3b863f4f (diff) | |
download | upstate-1e8a7eb0bd2b0ca1022d86680ac6a697fe74d454.tar.gz upstate-1e8a7eb0bd2b0ca1022d86680ac6a697fe74d454.tar.xz upstate-1e8a7eb0bd2b0ca1022d86680ac6a697fe74d454.zip |
Make State#rise use local dependency info
State#rise was looking at class-level deps, which is incorrect and which caused
an error since class-level deps aren't State objects.
Diffstat (limited to 'state.rb')
-rw-r--r-- | state.rb | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -221,7 +221,7 @@ private # Set this state to true def rise return if @active - self.class.depends.each{ |x| x.hold(self) } + @deps.each{ |x| x.hold(self) } self.class.rising_edge.call(params) @active = true State.depsolve_all |