From 23f893a1303b35e11d7103d892c40b7e8d209a06 Mon Sep 17 00:00:00 2001 From: s-ol Date: Sun, 15 Mar 2020 13:38:00 +0100 Subject: add Input spec Close #8 --- core/base/input.moon | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'core/base') 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 -- cgit v1.2.3