• 
      

    Add events and easier subclass behavior when removing views.

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

    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.

    Commits

    Files