Skip to content

object: don't use toggle references unless necessary

Many GObjects (such as widgets and actors) don't have JS state, but they're kept alive by C code. We can therefore save some memory by GCing these objects, and creating new wrappers when needed. If state is ever set, we transparently switch to toggle refs, so no change should be visible at the JS level.

Closes #62 (closed).

Edited by Georges Basile Stavracas Neto

Merge request reports