{"action":"created","issue":{"url":"https://api.github.com/repos/almende/vis/issues/1571","labels_url":"https://api.github.com/repos/almende/vis/issues/1571/labels{/name}","comments_url":"https://api.github.com/repos/almende/vis/issues/1571/comments","events_url":"https://api.github.com/repos/almende/vis/issues/1571/events","html_url":"https://github.com/almende/vis/issues/1571","id":126740719,"number":1571,"title":"Passing Scope in selectNode method not working","user":{"login":"vramali1","id":7856946,"avatar_url":"https://avatars.githubusercontent.com/u/7856946?v=3","gravatar_id":"","url":"https://api.github.com/users/vramali1","html_url":"https://github.com/vramali1","followers_url":"https://api.github.com/users/vramali1/followers","following_url":"https://api.github.com/users/vramali1/following{/other_user}","gists_url":"https://api.github.com/users/vramali1/gists{/gist_id}","starred_url":"https://api.github.com/users/vramali1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vramali1/subscriptions","organizations_url":"https://api.github.com/users/vramali1/orgs","repos_url":"https://api.github.com/users/vramali1/repos","events_url":"https://api.github.com/users/vramali1/events{/privacy}","received_events_url":"https://api.github.com/users/vramali1/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-14T20:24:13Z","updated_at":"2016-01-15T12:30:47Z","closed_at":null,"body":"Hello,\r\n\r\nI have integrated Vis JS inside Ext JS framework code. In the Ext JS controller object I am creating the Vis JS Network object. I want a Ext JS window to popup whenever I select a node. Inorder to do that, want to call the Ext JS controller object function inside the select event handler like.\r\ncreateGraph : function(){\r\nvar me = this;\r\nme.serviceDetailGraph = new vis.Network(container, data, graphOptions);\r\nthis.serviceDetailGraph.on('select', function(data){\r\nme.process(data);\r\n}\r\n}\r\nprocess : function(data){\r\n\r\n}\r\n\r\nThe issue I am facing in the above code. The process function is not called and I am getting the error me is undefined. Could you please tell if I can pass the scope for the select event handler.\r\n\r\nThanks,\r\n-Vijay"},"comment":{"url":"https://api.github.com/repos/almende/vis/issues/comments/171949114","html_url":"https://github.com/almende/vis/issues/1571#issuecomment-171949114","issue_url":"https://api.github.com/repos/almende/vis/issues/1571","id":171949114,"user":{"login":"AlexDM0","id":5363277,"avatar_url":"https://avatars.githubusercontent.com/u/5363277?v=3","gravatar_id":"","url":"https://api.github.com/users/AlexDM0","html_url":"https://github.com/AlexDM0","followers_url":"https://api.github.com/users/AlexDM0/followers","following_url":"https://api.github.com/users/AlexDM0/following{/other_user}","gists_url":"https://api.github.com/users/AlexDM0/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexDM0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexDM0/subscriptions","organizations_url":"https://api.github.com/users/AlexDM0/orgs","repos_url":"https://api.github.com/users/AlexDM0/repos","events_url":"https://api.github.com/users/AlexDM0/events{/privacy}","received_events_url":"https://api.github.com/users/AlexDM0/received_events","type":"User","site_admin":false},"created_at":"2016-01-15T12:30:47Z","updated_at":"2016-01-15T12:30:47Z","body":"Hi,\r\n\r\nthis seems like a plain javascript issue. I dont see how this is a problem with vis.\r\n\r\nRegards"}}