diff --git a/lacci/lib/shoes/widget.rb b/lacci/lib/shoes/widget.rb index a0e7daec1..4f473ea94 100644 --- a/lacci/lib/shoes/widget.rb +++ b/lacci/lib/shoes/widget.rb @@ -152,12 +152,8 @@ def destroy alias_method :remove, :destroy def clear(&block) - @children.dup.each do |child| - child.destroy - end - if block_given? - append(&block) - end + @children.dup.each(&:destroy) + append(&block) if block_given? end def append(&block)