FlexLayout
FlexLayout copied to clipboard
remove previous model change listener when the layout is unmounted
This ensures the event handlers for the model are cleaned up if the Layout is unmounted.