Fixed Propagator.forChildren

This commit is contained in:
Sasha Koshka 2023-03-04 01:29:45 -05:00
parent be286fa86c
commit 90ce0d7281

View File

@ -278,7 +278,7 @@ func (propagator *Propagator) forChildren (callback func (child elements.Element
for index := 0; index < propagator.parent.CountChildren(); index ++ {
child := propagator.parent.Child(index)
if child == nil { continue }
if callback(child) { break }
if !callback(child) { break }
}
}