{"action":"created","issue":{"url":"https://api.github.com/repos/mbraak/jqTree/issues/366","labels_url":"https://api.github.com/repos/mbraak/jqTree/issues/366/labels{/name}","comments_url":"https://api.github.com/repos/mbraak/jqTree/issues/366/comments","events_url":"https://api.github.com/repos/mbraak/jqTree/issues/366/events","html_url":"https://github.com/mbraak/jqTree/issues/366","id":69085408,"number":366,"title":"Expand all branches  of a selected node.","user":{"login":"husseinkhatib","id":7023214,"avatar_url":"https://avatars.githubusercontent.com/u/7023214?v=3","gravatar_id":"","url":"https://api.github.com/users/husseinkhatib","html_url":"https://github.com/husseinkhatib","followers_url":"https://api.github.com/users/husseinkhatib/followers","following_url":"https://api.github.com/users/husseinkhatib/following{/other_user}","gists_url":"https://api.github.com/users/husseinkhatib/gists{/gist_id}","starred_url":"https://api.github.com/users/husseinkhatib/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/husseinkhatib/subscriptions","organizations_url":"https://api.github.com/users/husseinkhatib/orgs","repos_url":"https://api.github.com/users/husseinkhatib/repos","events_url":"https://api.github.com/users/husseinkhatib/events{/privacy}","received_events_url":"https://api.github.com/users/husseinkhatib/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-17T07:22:16Z","updated_at":"2015-04-17T09:40:28Z","closed_at":null,"body":"Hi Mbraak,\r\n\r\nIs there any function to open all BRANCHES OF THE SELECTED NODE?"},"comment":{"url":"https://api.github.com/repos/mbraak/jqTree/issues/comments/93953399","html_url":"https://github.com/mbraak/jqTree/issues/366#issuecomment-93953399","issue_url":"https://api.github.com/repos/mbraak/jqTree/issues/366","id":93953399,"user":{"login":"mbraak","id":235558,"avatar_url":"https://avatars.githubusercontent.com/u/235558?v=3","gravatar_id":"","url":"https://api.github.com/users/mbraak","html_url":"https://github.com/mbraak","followers_url":"https://api.github.com/users/mbraak/followers","following_url":"https://api.github.com/users/mbraak/following{/other_user}","gists_url":"https://api.github.com/users/mbraak/gists{/gist_id}","starred_url":"https://api.github.com/users/mbraak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbraak/subscriptions","organizations_url":"https://api.github.com/users/mbraak/orgs","repos_url":"https://api.github.com/users/mbraak/repos","events_url":"https://api.github.com/users/mbraak/events{/privacy}","received_events_url":"https://api.github.com/users/mbraak/received_events","type":"User","site_admin":false},"created_at":"2015-04-17T09:40:28Z","updated_at":"2015-04-17T09:40:28Z","body":"You could do something like this:\r\n\r\n```js\r\n// open children of node 'Saurischia'\r\nvar node = $tree.tree('getNodeByName', 'Saurischia');\r\n\r\nnode.children.forEach(function(child) {\r\n    if (child.isFolder()) {\r\n        $tree.tree('openNode', child);\r\n    }\r\n});\r\n```\r\n\r\nNote that this example uses the ``Array.forEach`` function, which is not available in ie8.\r\n"}}