Node fires beforeDestroy event too late
|Reported by:||ornus||Owned by:||ilia|
TreeNodeV3 fires beforeDestroy event after it detaches from the window. That makes it impossible to determine where the node was located in the tree. Instead it should fire it while it's still attached to the tree.