3 ms·
how does collapse work then?
by sterlind 3y ago
how does collapse work then?
- kijin 3y agoLoop over next siblings and hide them one by one, until you hit an entry with an indentation level that is less than or equal to that of the current entry?
- refset 3y agoTake a look at the kidvis function in hn.js
- archgoon 3y agoIt iterates across sibling comment elements, hides them, until it encounters one whose indent level is less than or equal to the initial indent level.
- sterlind 3y agothat makes sense. you're shadowbanned by the way, I had to vouch for your comment.