diff options
| author | s-ol <s-ol@users.noreply.github.com> | 2020-04-27 18:33:26 +0000 |
|---|---|---|
| committer | s-ol <s-ol@users.noreply.github.com> | 2020-04-27 18:33:26 +0000 |
| commit | 4f90905420445eac7ac6040d93ca38937fd0a0b7 (patch) | |
| tree | f956c698cc82a0c961d7efa8d22f4edeb31d5b5f | |
| parent | move internal md docs into docs/internals (diff) | |
| download | alive-4f90905420445eac7ac6040d93ca38937fd0a0b7.tar.gz alive-4f90905420445eac7ac6040d93ca38937fd0a0b7.zip | |
fix util/edge
| -rw-r--r-- | alv-lib/util.moon | 6 |
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: |
