You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently when object is destructed, all property values are deleted, it's prototype is changed to db.Base.prototype and emitters for all property changes emit with new values (undefined).
Cleaner probably would be to:
Detach observers from properties (so clean all listeners from property observers)
Downgrade object prototype (that should result with some events, e.g. object removed from instances set).
Above should also allow to produce configuration that's scalable in sense that some objects can be permanently cleared and even re-added. It can be agreed that once destroyed object is never resurrected with same object instance, but new one is created if such action is desired.
We should also be able to distinguish two actions:
Deletion of object, in such aside of object being destroyed, the records that remove all properties and object itself should also be propagated with (persistent db) events
Remove of object from memory. It should be pure removal from memory, no persistent db events, just memory events that concern object visibility should be propagated
The text was updated successfully, but these errors were encountered:
Currently when object is destructed, all property values are deleted, it's prototype is changed to
db.Base.prototype
and emitters for all property changes emit with new values (undefined
).Cleaner probably would be to:
Above should also allow to produce configuration that's scalable in sense that some objects can be permanently cleared and even re-added. It can be agreed that once destroyed object is never resurrected with same object instance, but new one is created if such action is desired.
We should also be able to distinguish two actions:
The text was updated successfully, but these errors were encountered: