{"action":"opened","issue":{"url":"https://api.github.com/repos/LexiFi/gen_js_api/issues/75","repository_url":"https://api.github.com/repos/LexiFi/gen_js_api","labels_url":"https://api.github.com/repos/LexiFi/gen_js_api/issues/75/labels{/name}","comments_url":"https://api.github.com/repos/LexiFi/gen_js_api/issues/75/comments","events_url":"https://api.github.com/repos/LexiFi/gen_js_api/issues/75/events","html_url":"https://github.com/LexiFi/gen_js_api/issues/75","id":258753780,"number":75,"title":"this","user":{"login":"nickbetteridge","id":11959205,"avatar_url":"https://avatars0.githubusercontent.com/u/11959205?v=4","gravatar_id":"","url":"https://api.github.com/users/nickbetteridge","html_url":"https://github.com/nickbetteridge","followers_url":"https://api.github.com/users/nickbetteridge/followers","following_url":"https://api.github.com/users/nickbetteridge/following{/other_user}","gists_url":"https://api.github.com/users/nickbetteridge/gists{/gist_id}","starred_url":"https://api.github.com/users/nickbetteridge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nickbetteridge/subscriptions","organizations_url":"https://api.github.com/users/nickbetteridge/orgs","repos_url":"https://api.github.com/users/nickbetteridge/repos","events_url":"https://api.github.com/users/nickbetteridge/events{/privacy}","received_events_url":"https://api.github.com/users/nickbetteridge/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-09-19T09:26:25Z","updated_at":"2017-09-19T09:26:25Z","closed_at":null,"author_association":"NONE","body":"Trying to define ```this``` and can't quite work it out. With a javascript callback -\r\n```\r\nmyFunction.on(\"mouseover\", function (d) {\r\n  myObject.select(this);\r\n})\r\n```\r\nIn my gen_js_api environment I have all my functions nicely typed and so to do a ```select(this)``` I have to perform a ```_to_js``` on myObject and then an ```Ojs.call``` on ```\"select\"```. Is there a more elegant way of doing this? It would be great to do something like ```val select: my_object_type this_type ...```.\r\n\r\nPerhaps ```[@@js.call \"select\"]``` implicitly references ```this```?"}}
{"actor":{"display_login":"nickbetteridge"}}