{"action":"opened","number":116,"pull_request":{"url":"https://api.github.com/repos/cujojs/rest/pulls/116","id":35314649,"html_url":"https://github.com/cujojs/rest/pull/116","diff_url":"https://github.com/cujojs/rest/pull/116.diff","patch_url":"https://github.com/cujojs/rest/pull/116.patch","issue_url":"https://api.github.com/repos/cujojs/rest/issues/116","number":116,"state":"open","locked":false,"title":"Allow to use XHR within Webworker scope","user":{"login":"zeitiger","id":656302,"avatar_url":"https://avatars.githubusercontent.com/u/656302?v=3","gravatar_id":"","url":"https://api.github.com/users/zeitiger","html_url":"https://github.com/zeitiger","followers_url":"https://api.github.com/users/zeitiger/followers","following_url":"https://api.github.com/users/zeitiger/following{/other_user}","gists_url":"https://api.github.com/users/zeitiger/gists{/gist_id}","starred_url":"https://api.github.com/users/zeitiger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zeitiger/subscriptions","organizations_url":"https://api.github.com/users/zeitiger/orgs","repos_url":"https://api.github.com/users/zeitiger/repos","events_url":"https://api.github.com/users/zeitiger/events{/privacy}","received_events_url":"https://api.github.com/users/zeitiger/received_events","type":"User","site_admin":false},"body":"At the moment you can't use XHR if you load restClient within a worker instance. I extend global definition to fallback to self instead of window.","created_at":"2015-05-13T10:49:37Z","updated_at":"2015-05-13T10:49:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/cujojs/rest/pulls/116/commits","review_comments_url":"https://api.github.com/repos/cujojs/rest/pulls/116/comments","review_comment_url":"https://api.github.com/repos/cujojs/rest/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cujojs/rest/issues/116/comments","statuses_url":"https://api.github.com/repos/cujojs/rest/statuses/e23bf7054039675788823119be0ebde6e9c2eacf","head":{"label":"zeitiger:master","ref":"master","sha":"e23bf7054039675788823119be0ebde6e9c2eacf","user":{"login":"zeitiger","id":656302,"avatar_url":"https://avatars.githubusercontent.com/u/656302?v=3","gravatar_id":"","url":"https://api.github.com/users/zeitiger","html_url":"https://github.com/zeitiger","followers_url":"https://api.github.com/users/zeitiger/followers","following_url":"https://api.github.com/users/zeitiger/following{/other_user}","gists_url":"https://api.github.com/users/zeitiger/gists{/gist_id}","starred_url":"https://api.github.com/users/zeitiger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zeitiger/subscriptions","organizations_url":"https://api.github.com/users/zeitiger/orgs","repos_url":"https://api.github.com/users/zeitiger/repos","events_url":"https://api.github.com/users/zeitiger/events{/privacy}","received_events_url":"https://api.github.com/users/zeitiger/received_events","type":"User","site_admin":false},"repo":{"id":35543239,"name":"rest","full_name":"zeitiger/rest","owner":{"login":"zeitiger","id":656302,"avatar_url":"https://avatars.githubusercontent.com/u/656302?v=3","gravatar_id":"","url":"https://api.github.com/users/zeitiger","html_url":"https://github.com/zeitiger","followers_url":"https://api.github.com/users/zeitiger/followers","following_url":"https://api.github.com/users/zeitiger/following{/other_user}","gists_url":"https://api.github.com/users/zeitiger/gists{/gist_id}","starred_url":"https://api.github.com/users/zeitiger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zeitiger/subscriptions","organizations_url":"https://api.github.com/users/zeitiger/orgs","repos_url":"https://api.github.com/users/zeitiger/repos","events_url":"https://api.github.com/users/zeitiger/events{/privacy}","received_events_url":"https://api.github.com/users/zeitiger/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/zeitiger/rest","description":"RESTful HTTP client for JavaScript","fork":true,"url":"https://api.github.com/repos/zeitiger/rest","forks_url":"https://api.github.com/repos/zeitiger/rest/forks","keys_url":"https://api.github.com/repos/zeitiger/rest/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zeitiger/rest/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zeitiger/rest/teams","hooks_url":"https://api.github.com/repos/zeitiger/rest/hooks","issue_events_url":"https://api.github.com/repos/zeitiger/rest/issues/events{/number}","events_url":"https://api.github.com/repos/zeitiger/rest/events","assignees_url":"https://api.github.com/repos/zeitiger/rest/assignees{/user}","branches_url":"https://api.github.com/repos/zeitiger/rest/branches{/branch}","tags_url":"https://api.github.com/repos/zeitiger/rest/tags","blobs_url":"https://api.github.com/repos/zeitiger/rest/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zeitiger/rest/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zeitiger/rest/git/refs{/sha}","trees_url":"https://api.github.com/repos/zeitiger/rest/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zeitiger/rest/statuses/{sha}","languages_url":"https://api.github.com/repos/zeitiger/rest/languages","stargazers_url":"https://api.github.com/repos/zeitiger/rest/stargazers","contributors_url":"https://api.github.com/repos/zeitiger/rest/contributors","subscribers_url":"https://api.github.com/repos/zeitiger/rest/subscribers","subscription_url":"https://api.github.com/repos/zeitiger/rest/subscription","commits_url":"https://api.github.com/repos/zeitiger/rest/commits{/sha}","git_commits_url":"https://api.github.com/repos/zeitiger/rest/git/commits{/sha}","comments_url":"https://api.github.com/repos/zeitiger/rest/comments{/number}","issue_comment_url":"https://api.github.com/repos/zeitiger/rest/issues/comments{/number}","contents_url":"https://api.github.com/repos/zeitiger/rest/contents/{+path}","compare_url":"https://api.github.com/repos/zeitiger/rest/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zeitiger/rest/merges","archive_url":"https://api.github.com/repos/zeitiger/rest/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zeitiger/rest/downloads","issues_url":"https://api.github.com/repos/zeitiger/rest/issues{/number}","pulls_url":"https://api.github.com/repos/zeitiger/rest/pulls{/number}","milestones_url":"https://api.github.com/repos/zeitiger/rest/milestones{/number}","notifications_url":"https://api.github.com/repos/zeitiger/rest/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zeitiger/rest/labels{/name}","releases_url":"https://api.github.com/repos/zeitiger/rest/releases{/id}","created_at":"2015-05-13T10:39:41Z","updated_at":"2015-05-13T10:39:42Z","pushed_at":"2015-05-13T10:45:21Z","git_url":"git://github.com/zeitiger/rest.git","ssh_url":"git@github.com:zeitiger/rest.git","clone_url":"https://github.com/zeitiger/rest.git","svn_url":"https://github.com/zeitiger/rest","homepage":"http://cujojs.com/","size":2251,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"cujojs:master","ref":"master","sha":"fd2daae88ed6a3c3fc973dc966697a4c4ba724bf","user":{"login":"cujojs","id":1211266,"avatar_url":"https://avatars.githubusercontent.com/u/1211266?v=3","gravatar_id":"","url":"https://api.github.com/users/cujojs","html_url":"https://github.com/cujojs","followers_url":"https://api.github.com/users/cujojs/followers","following_url":"https://api.github.com/users/cujojs/following{/other_user}","gists_url":"https://api.github.com/users/cujojs/gists{/gist_id}","starred_url":"https://api.github.com/users/cujojs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cujojs/subscriptions","organizations_url":"https://api.github.com/users/cujojs/orgs","repos_url":"https://api.github.com/users/cujojs/repos","events_url":"https://api.github.com/users/cujojs/events{/privacy}","received_events_url":"https://api.github.com/users/cujojs/received_events","type":"Organization","site_admin":false},"repo":{"id":4426452,"name":"rest","full_name":"cujojs/rest","owner":{"login":"cujojs","id":1211266,"avatar_url":"https://avatars.githubusercontent.com/u/1211266?v=3","gravatar_id":"","url":"https://api.github.com/users/cujojs","html_url":"https://github.com/cujojs","followers_url":"https://api.github.com/users/cujojs/followers","following_url":"https://api.github.com/users/cujojs/following{/other_user}","gists_url":"https://api.github.com/users/cujojs/gists{/gist_id}","starred_url":"https://api.github.com/users/cujojs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cujojs/subscriptions","organizations_url":"https://api.github.com/users/cujojs/orgs","repos_url":"https://api.github.com/users/cujojs/repos","events_url":"https://api.github.com/users/cujojs/events{/privacy}","received_events_url":"https://api.github.com/users/cujojs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cujojs/rest","description":"RESTful HTTP client for JavaScript","fork":false,"url":"https://api.github.com/repos/cujojs/rest","forks_url":"https://api.github.com/repos/cujojs/rest/forks","keys_url":"https://api.github.com/repos/cujojs/rest/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cujojs/rest/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cujojs/rest/teams","hooks_url":"https://api.github.com/repos/cujojs/rest/hooks","issue_events_url":"https://api.github.com/repos/cujojs/rest/issues/events{/number}","events_url":"https://api.github.com/repos/cujojs/rest/events","assignees_url":"https://api.github.com/repos/cujojs/rest/assignees{/user}","branches_url":"https://api.github.com/repos/cujojs/rest/branches{/branch}","tags_url":"https://api.github.com/repos/cujojs/rest/tags","blobs_url":"https://api.github.com/repos/cujojs/rest/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cujojs/rest/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cujojs/rest/git/refs{/sha}","trees_url":"https://api.github.com/repos/cujojs/rest/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cujojs/rest/statuses/{sha}","languages_url":"https://api.github.com/repos/cujojs/rest/languages","stargazers_url":"https://api.github.com/repos/cujojs/rest/stargazers","contributors_url":"https://api.github.com/repos/cujojs/rest/contributors","subscribers_url":"https://api.github.com/repos/cujojs/rest/subscribers","subscription_url":"https://api.github.com/repos/cujojs/rest/subscription","commits_url":"https://api.github.com/repos/cujojs/rest/commits{/sha}","git_commits_url":"https://api.github.com/repos/cujojs/rest/git/commits{/sha}","comments_url":"https://api.github.com/repos/cujojs/rest/comments{/number}","issue_comment_url":"https://api.github.com/repos/cujojs/rest/issues/comments{/number}","contents_url":"https://api.github.com/repos/cujojs/rest/contents/{+path}","compare_url":"https://api.github.com/repos/cujojs/rest/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cujojs/rest/merges","archive_url":"https://api.github.com/repos/cujojs/rest/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cujojs/rest/downloads","issues_url":"https://api.github.com/repos/cujojs/rest/issues{/number}","pulls_url":"https://api.github.com/repos/cujojs/rest/pulls{/number}","milestones_url":"https://api.github.com/repos/cujojs/rest/milestones{/number}","notifications_url":"https://api.github.com/repos/cujojs/rest/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cujojs/rest/labels{/name}","releases_url":"https://api.github.com/repos/cujojs/rest/releases{/id}","created_at":"2012-05-23T23:11:04Z","updated_at":"2015-05-11T07:47:09Z","pushed_at":"2015-04-30T20:22:21Z","git_url":"git://github.com/cujojs/rest.git","ssh_url":"git@github.com:cujojs/rest.git","clone_url":"https://github.com/cujojs/rest.git","svn_url":"https://github.com/cujojs/rest","homepage":"http://cujojs.com/","size":2251,"stargazers_count":415,"watchers_count":415,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":58,"mirror_url":null,"open_issues_count":18,"forks":58,"open_issues":18,"watchers":415,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cujojs/rest/pulls/116"},"html":{"href":"https://github.com/cujojs/rest/pull/116"},"issue":{"href":"https://api.github.com/repos/cujojs/rest/issues/116"},"comments":{"href":"https://api.github.com/repos/cujojs/rest/issues/116/comments"},"review_comments":{"href":"https://api.github.com/repos/cujojs/rest/pulls/116/comments"},"review_comment":{"href":"https://api.github.com/repos/cujojs/rest/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cujojs/rest/pulls/116/commits"},"statuses":{"href":"https://api.github.com/repos/cujojs/rest/statuses/e23bf7054039675788823119be0ebde6e9c2eacf"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":1,"deletions":1,"changed_files":1}}