{"action":"closed","issue":{"url":"https://api.github.com/repos/mar10/fancytree/issues/549","labels_url":"https://api.github.com/repos/mar10/fancytree/issues/549/labels{/name}","comments_url":"https://api.github.com/repos/mar10/fancytree/issues/549/comments","events_url":"https://api.github.com/repos/mar10/fancytree/issues/549/events","html_url":"https://github.com/mar10/fancytree/issues/549","id":128263012,"number":549,"title":"getIndexHier for RootNode?","user":{"login":"jsh562","id":6527366,"avatar_url":"https://avatars.githubusercontent.com/u/6527366?v=3","gravatar_id":"","url":"https://api.github.com/users/jsh562","html_url":"https://github.com/jsh562","followers_url":"https://api.github.com/users/jsh562/followers","following_url":"https://api.github.com/users/jsh562/following{/other_user}","gists_url":"https://api.github.com/users/jsh562/gists{/gist_id}","starred_url":"https://api.github.com/users/jsh562/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jsh562/subscriptions","organizations_url":"https://api.github.com/users/jsh562/orgs","repos_url":"https://api.github.com/users/jsh562/repos","events_url":"https://api.github.com/users/jsh562/events{/privacy}","received_events_url":"https://api.github.com/users/jsh562/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-01-22T22:36:59Z","updated_at":"2016-01-23T20:29:13Z","closed_at":"2016-01-23T20:29:13Z","body":"Hello,\r\n\r\nI am working with dragDrop to specifically control what can be moved to where.\r\nI am mainly using node.getIndexHier() or otherNode.getIndexHier() (with .length and whatnot) to determine what level they are on. \r\nWhen using node.getIndexHier() when dragDropping an object to the root node, I get \"1\".\r\nWhen using node.getIndexHier() when dragDropping an object to the very first node, I also get \"1\".\r\nIt seems that the root node and the \"first\" node have the same IndexHier? Please correct me if I am wrong.\r\n\r\nIs there a better way to figure out the hierarchy level of each node?\r\nAnd, what is a good way to figure out if the target node is the root node?\r\n\r\nThank you!"}}