{"action":"created","issue":{"url":"https://api.github.com/repos/vakata/jstree/issues/1591","repository_url":"https://api.github.com/repos/vakata/jstree","labels_url":"https://api.github.com/repos/vakata/jstree/issues/1591/labels{/name}","comments_url":"https://api.github.com/repos/vakata/jstree/issues/1591/comments","events_url":"https://api.github.com/repos/vakata/jstree/issues/1591/events","html_url":"https://github.com/vakata/jstree/issues/1591","id":181872377,"number":1591,"title":"Why does open_node call redraw_node for all children?","user":{"login":"deitch","id":282526,"avatar_url":"https://avatars.githubusercontent.com/u/282526?v=3","gravatar_id":"","url":"https://api.github.com/users/deitch","html_url":"https://github.com/deitch","followers_url":"https://api.github.com/users/deitch/followers","following_url":"https://api.github.com/users/deitch/following{/other_user}","gists_url":"https://api.github.com/users/deitch/gists{/gist_id}","starred_url":"https://api.github.com/users/deitch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deitch/subscriptions","organizations_url":"https://api.github.com/users/deitch/orgs","repos_url":"https://api.github.com/users/deitch/repos","events_url":"https://api.github.com/users/deitch/events{/privacy}","received_events_url":"https://api.github.com/users/deitch/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-10-09T07:46:18Z","updated_at":"2016-10-13T23:05:47Z","closed_at":"2016-10-13T14:56:40Z","body":"Simple tree, with one parent node and three children. I set `show_only_matches=true`. Then I search for a match with just one child. \r\n\r\n(simplified data structure)\r\n\r\n````yml\r\nparent\r\n  child1\r\n  child2\r\n  child3\r\n````\r\n\r\nIf I search for `child2`, I get the second child highlighted and shown; the first (`child1`) and the third (`child3`) are hidden, correctly, because `show_only_matches=true`.\r\n\r\nNow close and open the parent. The correct _visual_ behaviour occurs. But I can see that `redraw_node` is called three times, once for each of `child1`, `child2`, `child3`. \r\n\r\n1. Why does it call it for each child if it only is redrawing `child2`?\r\n2. How does it *not* display `child1` and `child3` if it called `redraw_node` on all of three of them?\r\n\r\nI looked in the source for `jstree.search`, it overrides `redraw_node` but doesn't hide it, just adds the search class if it matches the results. It doesn't override or even create a handler for any of the `open` events.\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/vakata/jstree/issues/comments/253663916","html_url":"https://github.com/vakata/jstree/issues/1591#issuecomment-253663916","issue_url":"https://api.github.com/repos/vakata/jstree/issues/1591","id":253663916,"user":{"login":"deitch","id":282526,"avatar_url":"https://avatars.githubusercontent.com/u/282526?v=3","gravatar_id":"","url":"https://api.github.com/users/deitch","html_url":"https://github.com/deitch","followers_url":"https://api.github.com/users/deitch/followers","following_url":"https://api.github.com/users/deitch/following{/other_user}","gists_url":"https://api.github.com/users/deitch/gists{/gist_id}","starred_url":"https://api.github.com/users/deitch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deitch/subscriptions","organizations_url":"https://api.github.com/users/deitch/orgs","repos_url":"https://api.github.com/users/deitch/repos","events_url":"https://api.github.com/users/deitch/events{/privacy}","received_events_url":"https://api.github.com/users/deitch/received_events","type":"User","site_admin":false},"created_at":"2016-10-13T23:05:47Z","updated_at":"2016-10-13T23:05:47Z","body":"Thanks, I will work with that for now. I will worry about v4 then."}}
{"actor":{"display_login":"deitch"}}