Skip to content

Commit

Permalink
fix: initialize observed to prevent undefined
Browse files Browse the repository at this point in the history
See rive-app#375 for more details.
  • Loading branch information
kirbysayshi authored Nov 6, 2024
1 parent 3ffb67a commit ef9a388
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/src/rive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ef9a388

Please sign in to comment.