aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authors-ol <s-ol@users.noreply.github.com>2020-04-27 18:33:26 +0000
committers-ol <s-ol@users.noreply.github.com>2020-04-27 18:33:26 +0000
commit4f90905420445eac7ac6040d93ca38937fd0a0b7 (patch)
treef956c698cc82a0c961d7efa8d22f4edeb31d5b5f
parentmove internal md docs into docs/internals (diff)
downloadalive-4f90905420445eac7ac6040d93ca38937fd0a0b7.tar.gz
alive-4f90905420445eac7ac6040d93ca38937fd0a0b7.zip
fix util/edge
-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: