Yep, the issue is that some parents get left out without this code. Try running LocalMultilevelVisibilityMonitorVisualTest.html, with and without the closestPrev/closestNext lines commented out. That will hopefully give a good idea for their purpose