From ef9a3888530a2c23a8653d827a070c7bb2e55a32 Mon Sep 17 00:00:00 2001 From: Drew Petersen Date: Wed, 6 Nov 2024 13:48:25 -0500 Subject: [PATCH] fix: initialize `observed` to prevent `undefined` See #375 for more details. --- js/src/rive.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/src/rive.ts b/js/src/rive.ts index 565153ac..bf81554c 100644 --- a/js/src/rive.ts +++ b/js/src/rive.ts @@ -1489,7 +1489,7 @@ export class Rive { private loaded = false; // Reference of an object that handles any observers for the animation - private _observed: ObservedObject | null; + private _observed: ObservedObject | null = null; /** * Tracks if a Rive file is loaded; we need this in addition to loaded as some