only render subtree if open
Merge pull request #20 from snoe/master

Only render subtree when open