From 8c7991eb45f1ae6ea742a653b7182204951eeea3 Mon Sep 17 00:00:00 2001 From: Casey Dahlin Date: Thu, 2 Oct 2008 16:47:21 -0400 Subject: Trigger depsolving at appropriate times A state rising or falling now causes dep resolution --- state.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/state.rb b/state.rb index 1db4c2c..2e24a50 100644 --- a/state.rb +++ b/state.rb @@ -107,6 +107,7 @@ class State @active = false self.class.depends.each{ |x| x.remove_hold(x) } State.gc + State.depsolve_all end # Determine if two State objects are equivalent @@ -199,6 +200,7 @@ private self.class.depends.each{ |x| x.hold(self) } self.class.rising_edge.call(@params) @active = true + State.depsolve_all end # Inform other states that they may no longer depend on this one -- cgit