From 1e8a7eb0bd2b0ca1022d86680ac6a697fe74d454 Mon Sep 17 00:00:00 2001 From: Casey Dahlin Date: Fri, 3 Oct 2008 17:52:36 -0400 Subject: 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. --- state.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/state.rb b/state.rb index b45ebb5..1381480 100644 --- a/state.rb +++ b/state.rb @@ -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 -- cgit