diff options
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 |
