{"action":"created","issue":{"url":"https://api.github.com/repos/almende/vis/issues/1401","labels_url":"https://api.github.com/repos/almende/vis/issues/1401/labels{/name}","comments_url":"https://api.github.com/repos/almende/vis/issues/1401/comments","events_url":"https://api.github.com/repos/almende/vis/issues/1401/events","html_url":"https://github.com/almende/vis/issues/1401","id":114093913,"number":1401,"title":"DataSet does not return item on DataSet.get()","user":{"login":"wolfig","id":10722208,"avatar_url":"https://avatars.githubusercontent.com/u/10722208?v=3","gravatar_id":"","url":"https://api.github.com/users/wolfig","html_url":"https://github.com/wolfig","followers_url":"https://api.github.com/users/wolfig/followers","following_url":"https://api.github.com/users/wolfig/following{/other_user}","gists_url":"https://api.github.com/users/wolfig/gists{/gist_id}","starred_url":"https://api.github.com/users/wolfig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wolfig/subscriptions","organizations_url":"https://api.github.com/users/wolfig/orgs","repos_url":"https://api.github.com/users/wolfig/repos","events_url":"https://api.github.com/users/wolfig/events{/privacy}","received_events_url":"https://api.github.com/users/wolfig/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-29T16:43:28Z","updated_at":"2015-10-29T18:42:09Z","closed_at":null,"body":"Dear experts,\r\n\r\nI have a network which I create from a DataSet. If the user clicks on an node I would like to fetch the data of this node from the dataSet. I only always get null...\r\n\r\nI implemented the click-event as follows:\r\n\r\n  network.on(\"click\", function (params) {\r\n\t  if (params.nodes.length == 1) {\r\n\t\t  var elementID = params.nodes[0];\r\n\t\t  var elementClicked = theDataSet.get(elementID);\r\n\t\t  if (1 == 1){};  <---- only for debugging\r\n\t  }\r\n    });\r\n\r\nMy nodes have string-IDs. I do see in vis.js line 6043 (DataSet.prototype._getItem) that the ID of the node is not passed from the interface to the subsequent code.\r\n\r\nID in the interface:\r\n![image](https://cloud.githubusercontent.com/assets/10722208/10825239/63cdba9a-7e64-11e5-84e1-721c470af044.png)\r\n\r\nID in the code:\r\n![image](https://cloud.githubusercontent.com/assets/10722208/10825256/7cdb0bf0-7e64-11e5-8899-1cf2f854e93e.png)\r\n\r\nIs this a bug, or am I doing something wring?\r\n\r\nBest regards\r\nWolfiG\r\n"},"comment":{"url":"https://api.github.com/repos/almende/vis/issues/comments/152282504","html_url":"https://github.com/almende/vis/issues/1401#issuecomment-152282504","issue_url":"https://api.github.com/repos/almende/vis/issues/1401","id":152282504,"user":{"login":"dragonzone","id":10065158,"avatar_url":"https://avatars.githubusercontent.com/u/10065158?v=3","gravatar_id":"","url":"https://api.github.com/users/dragonzone","html_url":"https://github.com/dragonzone","followers_url":"https://api.github.com/users/dragonzone/followers","following_url":"https://api.github.com/users/dragonzone/following{/other_user}","gists_url":"https://api.github.com/users/dragonzone/gists{/gist_id}","starred_url":"https://api.github.com/users/dragonzone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dragonzone/subscriptions","organizations_url":"https://api.github.com/users/dragonzone/orgs","repos_url":"https://api.github.com/users/dragonzone/repos","events_url":"https://api.github.com/users/dragonzone/events{/privacy}","received_events_url":"https://api.github.com/users/dragonzone/received_events","type":"User","site_admin":false},"created_at":"2015-10-29T18:42:09Z","updated_at":"2015-10-29T18:42:09Z","body":"Take a look here: http://jsfiddle.net/u0qao0p6/\r\n\r\nYou may want to read the vis.js documentation for more details. \r\n\r\nhttp://visjs.org/docs/network/interaction.html#"}}