aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--alv-lib/util.moon6
1 files changed, 3 insertions, 3 deletions
diff --git a/alv-lib/util.moon b/alv-lib/util.moon
index dc133e4..abb49c0 100644
--- a/alv-lib/util.moon
+++ b/alv-lib/util.moon
@@ -66,9 +66,9 @@ edge = ValueStream.meta
tick: =>
now = @inputs.value!
- if now and not @state.last
- @out\set true
- @state.last = now
+ if now and not @state
+ @out\add true
+ @state = now
change = ValueStream.meta
meta: