mbraak/jqTree — pull request #32 by deefour (2012-06-15 19:12:57+00:00)
Title: Ensuring on refresh of the Tree that previously hidden/closed subtrees remain hidden/closed.

The Javascript I write is not Coffeescript, and I don't know QUnit, but thought it wouldn't hurt to submit this fix anyway; I think it is a simple enough fix that I didn't mess up the Coffeescript syntax.

I start with a tree 1 level deep with multiple folder nodes. Clicking a node triggers `loadData` for that node via Ajax. When the refresh of the parent *(the Tree in this case)* occurs, if other branches at the same level had previously been marked as closed, their subtree `

` is not re-hidden. This causes all of the previously expanded and closed subtrees to pop open when the refresh is performed.