{"action":"created","issue":{"url":"https://api.github.com/repos/konfirm/node-polymorphic/issues/3","repository_url":"https://api.github.com/repos/konfirm/node-polymorphic","labels_url":"https://api.github.com/repos/konfirm/node-polymorphic/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/konfirm/node-polymorphic/issues/3/comments","events_url":"https://api.github.com/repos/konfirm/node-polymorphic/issues/3/events","html_url":"https://github.com/konfirm/node-polymorphic/issues/3","id":190565033,"number":3,"title":"Function not called with this","user":{"login":"katywings","id":4012401,"avatar_url":"https://avatars.githubusercontent.com/u/4012401?v=3","gravatar_id":"","url":"https://api.github.com/users/katywings","html_url":"https://github.com/katywings","followers_url":"https://api.github.com/users/katywings/followers","following_url":"https://api.github.com/users/katywings/following{/other_user}","gists_url":"https://api.github.com/users/katywings/gists{/gist_id}","starred_url":"https://api.github.com/users/katywings/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/katywings/subscriptions","organizations_url":"https://api.github.com/users/katywings/orgs","repos_url":"https://api.github.com/users/katywings/repos","events_url":"https://api.github.com/users/katywings/events{/privacy}","received_events_url":"https://api.github.com/users/katywings/received_events","type":"User","site_admin":false},"labels":[{"id":203429301,"url":"https://api.github.com/repos/konfirm/node-polymorphic/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"open","locked":false,"assignee":{"login":"rspieker","id":981813,"avatar_url":"https://avatars.githubusercontent.com/u/981813?v=3","gravatar_id":"","url":"https://api.github.com/users/rspieker","html_url":"https://github.com/rspieker","followers_url":"https://api.github.com/users/rspieker/followers","following_url":"https://api.github.com/users/rspieker/following{/other_user}","gists_url":"https://api.github.com/users/rspieker/gists{/gist_id}","starred_url":"https://api.github.com/users/rspieker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rspieker/subscriptions","organizations_url":"https://api.github.com/users/rspieker/orgs","repos_url":"https://api.github.com/users/rspieker/repos","events_url":"https://api.github.com/users/rspieker/events{/privacy}","received_events_url":"https://api.github.com/users/rspieker/received_events","type":"User","site_admin":false},"assignees":[{"login":"rspieker","id":981813,"avatar_url":"https://avatars.githubusercontent.com/u/981813?v=3","gravatar_id":"","url":"https://api.github.com/users/rspieker","html_url":"https://github.com/rspieker","followers_url":"https://api.github.com/users/rspieker/followers","following_url":"https://api.github.com/users/rspieker/following{/other_user}","gists_url":"https://api.github.com/users/rspieker/gists{/gist_id}","starred_url":"https://api.github.com/users/rspieker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rspieker/subscriptions","organizations_url":"https://api.github.com/users/rspieker/orgs","repos_url":"https://api.github.com/users/rspieker/repos","events_url":"https://api.github.com/users/rspieker/events{/privacy}","received_events_url":"https://api.github.com/users/rspieker/received_events","type":"User","site_admin":false}],"milestone":null,"comments":1,"created_at":"2016-11-20T15:40:48Z","updated_at":"2016-11-20T16:46:54Z","closed_at":null,"body":"This is a nice to have feature:\r\n\r\n```js\r\nvar fun = polymorphic();\r\nfun.signature('number', function(num) {\r\n    console.log(this);\r\n});\r\nfun.call('so funny',2);\r\n// logs window or so\r\n// should log \"so funny\"\r\n```\r\n\r\nIs this technically even possible with the current polymorphic approach?"},"comment":{"url":"https://api.github.com/repos/konfirm/node-polymorphic/issues/comments/261789279","html_url":"https://github.com/konfirm/node-polymorphic/issues/3#issuecomment-261789279","issue_url":"https://api.github.com/repos/konfirm/node-polymorphic/issues/3","id":261789279,"user":{"login":"rspieker","id":981813,"avatar_url":"https://avatars.githubusercontent.com/u/981813?v=3","gravatar_id":"","url":"https://api.github.com/users/rspieker","html_url":"https://github.com/rspieker","followers_url":"https://api.github.com/users/rspieker/followers","following_url":"https://api.github.com/users/rspieker/following{/other_user}","gists_url":"https://api.github.com/users/rspieker/gists{/gist_id}","starred_url":"https://api.github.com/users/rspieker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rspieker/subscriptions","organizations_url":"https://api.github.com/users/rspieker/orgs","repos_url":"https://api.github.com/users/rspieker/repos","events_url":"https://api.github.com/users/rspieker/events{/privacy}","received_events_url":"https://api.github.com/users/rspieker/received_events","type":"User","site_admin":false},"created_at":"2016-11-20T16:46:54Z","updated_at":"2016-11-20T16:46:54Z","body":"Thanks for suggesting to preserve other `this`-contexts. I've done a quick test and it should be a simple change."}}
{"actor":{"display_login":"rspieker"}}