How to check destroyed component?

webix destructor method setting $destructed config as true, but it’s returning undefined when I tried for destroyed components.

Are we need to use this listener “onDestruct” to add any flag to identify destroyed object?

$destructed is working as expected
https://snippet.webix.com/imkwimqb

so it needed delay

Not really.

The destruction process is sync ( same the removeView API ), so $destructed property is set just after the related API call
https://snippet.webix.com/13w2zbn4

@webix_B_123
so it needed delay
no, I put timeout checking to show that $destructed is not changed later by accident.

understood