diff options
| author | s-ol <s-ol@users.noreply.github.com> | 2020-03-15 12:38:00 +0000 |
|---|---|---|
| committer | s-ol <s-ol@users.noreply.github.com> | 2020-03-15 12:38:00 +0000 |
| commit | 23f893a1303b35e11d7103d892c40b7e8d209a06 (patch) | |
| tree | 768db1660b0fe00c711a1b54f0e3297c24732164 /core/base | |
| parent | docs/guide: runtime description (diff) | |
| download | alive-23f893a1303b35e11d7103d892c40b7e8d209a06.tar.gz alive-23f893a1303b35e11d7103d892c40b7e8d209a06.zip | |
add Input spec
Close #8
Diffstat (limited to 'core/base')
| -rw-r--r-- | core/base/input.moon | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/core/base/input.moon b/core/base/input.moon index dae5b43..c89337f 100644 --- a/core/base/input.moon +++ b/core/base/input.moon @@ -119,8 +119,10 @@ class ColdInput extends Input class ValueInput extends Input setup: (old) => @dirty_setup = not old or @stream != old.stream - finish_setup: => @dirty_setup = false - dirty: => @dirty_setup or @stream\dirty! + finish_setup: => @dirty_setup = nil + dirty: => + return @dirty_setup if @dirty_setup != nil + @stream\dirty! class EventInput extends Input |
