Me when I make the exact mistake twice

This commit is contained in:
Sasha Koshka 2023-03-04 02:04:47 -05:00
parent dc5ddfc0bd
commit 4f6f4e1f1a

View File

@ -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 }
}
}