// RemoveAllItems empties the list of items and calls Teardown on each of them.
RemoveAllItems empties the list of items and calls Teardown on each of them.
// RemoveAllItems empties the list of items and calls Teardown on each of them .
func (list *ComponentList) RemoveAllItems() {
	for i := 0; i < len(list.ComponentListSimple.Items); i++ {
		if td, ok := list.ComponentListSimple.Items[i].(l.Teardowner); ok {
			td.Teardown()
		}
	}
	list.ComponentListSimple.RemoveAllItems()
}
func ( list * ComponentList ) RemoveAllItems ( ) { for i := 0 ; i < len ( list . ComponentListSimple . Items ) ; i ++ { if td , ok := list . ComponentListSimple . Items [ i ] . ( l . Teardowner ) ; ok { td . Teardown ( ) } } list . ComponentListSimple . RemoveAllItems ( ) }
RemoveAllItems empties the list of items and calls Teardown on each of them.
RemoveAllItems empties the list of items and calls Teardown on each of them .