Add events and easier subclass behavior when removing views.

Review Request #13572 — Created Feb. 26, 2024 and submitted

Information

Spina
master

Reviewers

BaseView.remove() now triggers a removing event prior to removing
and a removed 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.

Summary ID
Add events and easier subclass behavior when removing views.
`BaseView.remove()` now triggers a `removing` event prior to removing and a `removed` 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.
00ed1fb430a3cfe881ecd0c4f41d67cd15785ce3
david
  1. Ship It!
  2. 
      
chipx86
Review request changed
Status:
Completed
Change Summary:
Pushed to master (5a6aa60)