diff --git a/elements/core/propagator.go b/elements/core/propagator.go index c5a3f0b..b4bcd15 100644 --- a/elements/core/propagator.go +++ b/elements/core/propagator.go @@ -285,8 +285,8 @@ func (propagator *Propagator) forChildren (callback func (child elements.Element func (propagator *Propagator) forChildrenReverse (callback func (child elements.Element) bool) { for index := propagator.parent.CountChildren() - 1; index > 0; index -- { child := propagator.parent.Child(index) - if child == nil { continue } - if callback(child) { break } + if child == nil { continue } + if !callback(child) { break } } }