{"action":"created","issue":{"url":"https://api.github.com/repos/jxcore/jxcore/issues/742","labels_url":"https://api.github.com/repos/jxcore/jxcore/issues/742/labels{/name}","comments_url":"https://api.github.com/repos/jxcore/jxcore/issues/742/comments","events_url":"https://api.github.com/repos/jxcore/jxcore/issues/742/events","html_url":"https://github.com/jxcore/jxcore/issues/742","id":123193564,"number":742,"title":"Weak references in native interface","user":{"login":"helmutkian","id":1514604,"avatar_url":"https://avatars.githubusercontent.com/u/1514604?v=3","gravatar_id":"","url":"https://api.github.com/users/helmutkian","html_url":"https://github.com/helmutkian","followers_url":"https://api.github.com/users/helmutkian/followers","following_url":"https://api.github.com/users/helmutkian/following{/other_user}","gists_url":"https://api.github.com/users/helmutkian/gists{/gist_id}","starred_url":"https://api.github.com/users/helmutkian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/helmutkian/subscriptions","organizations_url":"https://api.github.com/users/helmutkian/orgs","repos_url":"https://api.github.com/users/helmutkian/repos","events_url":"https://api.github.com/users/helmutkian/events{/privacy}","received_events_url":"https://api.github.com/users/helmutkian/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/jxcore/jxcore/labels/0.3.1.1","name":"0.3.1.1","color":"0052cc"}],"state":"open","locked":false,"assignee":{"login":"obastemur","id":4390745,"avatar_url":"https://avatars.githubusercontent.com/u/4390745?v=3","gravatar_id":"","url":"https://api.github.com/users/obastemur","html_url":"https://github.com/obastemur","followers_url":"https://api.github.com/users/obastemur/followers","following_url":"https://api.github.com/users/obastemur/following{/other_user}","gists_url":"https://api.github.com/users/obastemur/gists{/gist_id}","starred_url":"https://api.github.com/users/obastemur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/obastemur/subscriptions","organizations_url":"https://api.github.com/users/obastemur/orgs","repos_url":"https://api.github.com/users/obastemur/repos","events_url":"https://api.github.com/users/obastemur/events{/privacy}","received_events_url":"https://api.github.com/users/obastemur/received_events","type":"User","site_admin":false},"milestone":null,"comments":2,"created_at":"2015-12-21T00:59:07Z","updated_at":"2015-12-23T19:54:55Z","closed_at":null,"body":"It would be very useful in the native interface, if persistent JXValue objects could be made weak. This would allow them to be garbage collected by the JavaScript engine but invoke a callback when GC'd.\r\n\r\nI imagine the function prototype would look something like this.\r\n\r\n````c\r\n\r\nbool JX_MakeWeak(JXValue *result, JX_CALLBACK callback);\r\n\r\n````"},"comment":{"url":"https://api.github.com/repos/jxcore/jxcore/issues/comments/166979718","html_url":"https://github.com/jxcore/jxcore/issues/742#issuecomment-166979718","issue_url":"https://api.github.com/repos/jxcore/jxcore/issues/742","id":166979718,"user":{"login":"helmutkian","id":1514604,"avatar_url":"https://avatars.githubusercontent.com/u/1514604?v=3","gravatar_id":"","url":"https://api.github.com/users/helmutkian","html_url":"https://github.com/helmutkian","followers_url":"https://api.github.com/users/helmutkian/followers","following_url":"https://api.github.com/users/helmutkian/following{/other_user}","gists_url":"https://api.github.com/users/helmutkian/gists{/gist_id}","starred_url":"https://api.github.com/users/helmutkian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/helmutkian/subscriptions","organizations_url":"https://api.github.com/users/helmutkian/orgs","repos_url":"https://api.github.com/users/helmutkian/repos","events_url":"https://api.github.com/users/helmutkian/events{/privacy}","received_events_url":"https://api.github.com/users/helmutkian/received_events","type":"User","site_admin":false},"created_at":"2015-12-23T19:54:54Z","updated_at":"2015-12-23T19:54:54Z","body":"Is the plan and proposed interface visible anywhere? The road map document only says to improve the native api."}}