This change avoids a circular reference that is an issue if you try to save the model to the backend. _attached_listeners contained a reference to a function in which this was bound to EventModel, so trying to serialize EventModel threw an error.
Necessary for an incoming PR to add an xy trait.
This is straightforward enough that I'll merge it without review if local testing looks good...
This change avoids a circular reference that is an issue if you try to save the model to the backend.
_attached_listeners
contained a reference to a function in whichthis
was bound toEventModel
, so trying to serializeEventModel
threw an error.Necessary for an incoming PR to add an
xy
trait.This is straightforward enough that I'll merge it without review if local testing looks good...