Skip to content

remove:region events are not triggered if a view's region is destroyed #3602

@paulfalgout

Description

@paulfalgout

Currently in v4 if a region is destroyed the view the region belongs to will not trigger the remove:region event. They are only triggered if view.removeRegion(name) is used. All that method does is trigger the events and destroy the region.

It seems minor, but inconsistent.

Seems like _removeReferences and the remove events could be triggered off of the region's destroy event. Of course that means adding a listener for each region instance which is less than ideal.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions