Good day!
Can I use $destructed property of view as a sign that it has been destructed?
Thank you!
Good day!
Can I use $destructed property of view as a sign that it has been destructed?
Thank you!
I have discovered and tried.
And finished with adding own property and initializing it at onDestruct event.
view.attachEvent(‘onDestruct’, () => {
//…
this.#destructed = true;
});
This guarantee that I will have actual state of destruction.
Standard $destructed property seems to be set after all js stack execution.
Thanks.