From 58b4bb1d78d5b4f43d80df40527d050a6dea2ecd Mon Sep 17 00:00:00 2001 From: Juraj Kirchheim Date: Thu, 14 Sep 2023 17:09:00 +0200 Subject: [PATCH] Make sure ObservableDate::passed is tracked in all cases. --- src/tink/state/ObservableDate.hx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tink/state/ObservableDate.hx b/src/tink/state/ObservableDate.hx index 1cea012..1ceff91 100644 --- a/src/tink/state/ObservableDate.hx +++ b/src/tink/state/ObservableDate.hx @@ -11,10 +11,10 @@ class ObservableDate implements ObservableObject { public var date(default, null):Date; public var passed(get, never):Bool; inline function get_passed():Bool - return _observable.getValue(); + return observe().value; public function canFire() - return passed; + return !_observable.getValue(); public function getRevision() return _observable.getRevision();