Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change TreeNode.toggle to act only from the source node
See #1644 (comment) where Darren raises the excellent point that while the "technically correct" approach that I had was... well, technically correct I guess (it toggled all the nodes from the target node down), it didn't have what was likely the desired effect. So this commit does away with the previous logic for doing the toggle and instead simply calls on expand or collapse depending on the state of the source node.
- Loading branch information
I think this makes more sense to me, but the docstring should probably be updated too.