diff --git a/container.go b/container.go index af0cae0928..3d42a3b755 100644 --- a/container.go +++ b/container.go @@ -139,6 +139,8 @@ func (c *Container) Refresh() { } // Remove updates the contents of this container to no longer include the specified object. +// This method is not intended to be used inside a loop, to remove all the elements. +// It is much more efficient to just set .Objects to nil instead. func (c *Container) Remove(rem CanvasObject) { if len(c.Objects) == 0 { return