{"action":"closed","issue":{"url":"https://api.github.com/repos/vakata/jstree/issues/1244","labels_url":"https://api.github.com/repos/vakata/jstree/issues/1244/labels{/name}","comments_url":"https://api.github.com/repos/vakata/jstree/issues/1244/comments","events_url":"https://api.github.com/repos/vakata/jstree/issues/1244/events","html_url":"https://github.com/vakata/jstree/issues/1244","id":110206374,"number":1244,"title":"node is not closing if set animation to false","user":{"login":"lrz-hal","id":2706572,"avatar_url":"https://avatars.githubusercontent.com/u/2706572?v=3","gravatar_id":"","url":"https://api.github.com/users/lrz-hal","html_url":"https://github.com/lrz-hal","followers_url":"https://api.github.com/users/lrz-hal/followers","following_url":"https://api.github.com/users/lrz-hal/following{/other_user}","gists_url":"https://api.github.com/users/lrz-hal/gists{/gist_id}","starred_url":"https://api.github.com/users/lrz-hal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lrz-hal/subscriptions","organizations_url":"https://api.github.com/users/lrz-hal/orgs","repos_url":"https://api.github.com/users/lrz-hal/repos","events_url":"https://api.github.com/users/lrz-hal/events{/privacy}","received_events_url":"https://api.github.com/users/lrz-hal/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-07T11:38:52Z","updated_at":"2015-10-07T12:12:19Z","closed_at":"2015-10-07T12:12:19Z","body":"Nodes are not closing if animation is set to false.\r\n\r\n    if(!animation || !d.length) {\r\n\t\t\t\t/**\r\n\t\t\t\t * triggered when a node is closed and the animation is complete\r\n\t\t\t\t * @event\r\n\t\t\t\t * @name after_close.jstree\r\n\t\t\t\t * @param {Object} node the closed node\r\n\t\t\t\t */\r\n\t\t\t\tthis.trigger(\"after_close\", { \"node\" : obj });\r\n\t\t\t}\r\n\t\t\telse if(d.length) {\r\n\t\t\t\tif(!animation) {\r\n\t\t\t\t\td[0].className = d[0].className.replace('jstree-open', 'jstree-closed');\r\n\t\t\t\t\td.attr(\"aria-expanded\", false).children('.jstree-children').remove();\r\n\t\t\t\t}\r\n\r\nSo if you set animation in config to false you never reach the point to close the node.\r\n"}}