Fix remove bug
This commit is contained in:
parent
6014d6068e
commit
ca23e0e06b
1 changed files with 1 additions and 1 deletions
|
@ -121,7 +121,7 @@ func (c *Container) Remove(component interface{}) {
|
|||
return
|
||||
}
|
||||
c.items[i] = nil
|
||||
delete(c.reverse, i)
|
||||
delete(c.reverse, component)
|
||||
if len(c.reverse) < len(c.items)/2 {
|
||||
c.compact()
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue