Add events and easier subclass behavior when removing views.
Review Request #13572 — Created Feb. 26, 2024 and submitted — Latest diff uploaded
BaseView.remove()
now triggers aremoving
event prior to removing
and aremoved
event after, allowing other code to more easily tie into
the removal process.It also now calls an
onRemove()
method on the subclass, which gives
subclasses an easier way to remove elements or state in a consistent
way.
Unit tests pass.
Made use of this in some work in Ink.