{"action":"created","issue":{"url":"https://api.github.com/repos/mar10/fancytree/issues/638","repository_url":"https://api.github.com/repos/mar10/fancytree","labels_url":"https://api.github.com/repos/mar10/fancytree/issues/638/labels{/name}","comments_url":"https://api.github.com/repos/mar10/fancytree/issues/638/comments","events_url":"https://api.github.com/repos/mar10/fancytree/issues/638/events","html_url":"https://github.com/mar10/fancytree/issues/638","id":178588981,"number":638,"title":"ext-persist does not work with fancytree.reload()","user":{"login":"riebel","id":818476,"avatar_url":"https://avatars.githubusercontent.com/u/818476?v=3","gravatar_id":"","url":"https://api.github.com/users/riebel","html_url":"https://github.com/riebel","followers_url":"https://api.github.com/users/riebel/followers","following_url":"https://api.github.com/users/riebel/following{/other_user}","gists_url":"https://api.github.com/users/riebel/gists{/gist_id}","starred_url":"https://api.github.com/users/riebel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/riebel/subscriptions","organizations_url":"https://api.github.com/users/riebel/orgs","repos_url":"https://api.github.com/users/riebel/repos","events_url":"https://api.github.com/users/riebel/events{/privacy}","received_events_url":"https://api.github.com/users/riebel/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mar10/fancytree/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/mar10/fancytree/labels/ext-persist","name":"ext-persist","color":"d4c5f9"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-09-22T11:50:07Z","updated_at":"2016-09-22T19:34:40Z","closed_at":null,"body":"It seems, that the persistence extension for fancytree only works, if I reload the page with F5.\r\nIt would be great if it worked with a fancytree.reload() option or ext-persist had an apply method.\r\n\r\n### Steps to reproduce the problem\r\n\r\n  1. create a tree from ajax source\r\n  2. fancytree.reload( source );\r\n  3. fancytree stays closed, the node ids are regenerated and do not match the localstorage/cookie\r\n"},"comment":{"url":"https://api.github.com/repos/mar10/fancytree/issues/comments/249005514","html_url":"https://github.com/mar10/fancytree/issues/638#issuecomment-249005514","issue_url":"https://api.github.com/repos/mar10/fancytree/issues/638","id":249005514,"user":{"login":"mar10","id":41663,"avatar_url":"https://avatars.githubusercontent.com/u/41663?v=3","gravatar_id":"","url":"https://api.github.com/users/mar10","html_url":"https://github.com/mar10","followers_url":"https://api.github.com/users/mar10/followers","following_url":"https://api.github.com/users/mar10/following{/other_user}","gists_url":"https://api.github.com/users/mar10/gists{/gist_id}","starred_url":"https://api.github.com/users/mar10/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mar10/subscriptions","organizations_url":"https://api.github.com/users/mar10/orgs","repos_url":"https://api.github.com/users/mar10/repos","events_url":"https://api.github.com/users/mar10/events{/privacy}","received_events_url":"https://api.github.com/users/mar10/received_events","type":"User","site_admin":false},"created_at":"2016-09-22T19:34:40Z","updated_at":"2016-09-22T19:34:40Z","body":"This could be implemented either\r\n\r\n  1. by adding an option to `tree.reload()` -  this would require that the core tree has knowledge about an extension, which seems a bit anti-pattern\r\n  1. by adding a new method to ext-persist: `tree.applyPersistedState()`\r\n"}}
{"actor":{"display_login":"mar10"}}