{"action":"opened","number":119,"pull_request":{"url":"https://api.github.com/repos/faisalman/ua-parser-js/pulls/119","id":37378601,"html_url":"https://github.com/faisalman/ua-parser-js/pull/119","diff_url":"https://github.com/faisalman/ua-parser-js/pull/119.diff","patch_url":"https://github.com/faisalman/ua-parser-js/pull/119.patch","issue_url":"https://api.github.com/repos/faisalman/ua-parser-js/issues/119","number":119,"state":"open","locked":false,"title":"Reference window as global if available","user":{"login":"roberttod","id":823104,"avatar_url":"https://avatars.githubusercontent.com/u/823104?v=3","gravatar_id":"","url":"https://api.github.com/users/roberttod","html_url":"https://github.com/roberttod","followers_url":"https://api.github.com/users/roberttod/followers","following_url":"https://api.github.com/users/roberttod/following{/other_user}","gists_url":"https://api.github.com/users/roberttod/gists{/gist_id}","starred_url":"https://api.github.com/users/roberttod/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/roberttod/subscriptions","organizations_url":"https://api.github.com/users/roberttod/orgs","repos_url":"https://api.github.com/users/roberttod/repos","events_url":"https://api.github.com/users/roberttod/events{/privacy}","received_events_url":"https://api.github.com/users/roberttod/received_events","type":"User","site_admin":false},"body":"This change will use `window` by default if it exists so that `browserify` and `Webpack` builds do not need to do something like\r\n\r\n```javascript\r\nvar parser = new UAParser(window.navigator.userAgent)\r\n```\r\n\r\nSee issue https://github.com/faisalman/ua-parser-js/issues/84","created_at":"2015-06-10T16:35:51Z","updated_at":"2015-06-10T16:35:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/faisalman/ua-parser-js/pulls/119/commits","review_comments_url":"https://api.github.com/repos/faisalman/ua-parser-js/pulls/119/comments","review_comment_url":"https://api.github.com/repos/faisalman/ua-parser-js/pulls/comments{/number}","comments_url":"https://api.github.com/repos/faisalman/ua-parser-js/issues/119/comments","statuses_url":"https://api.github.com/repos/faisalman/ua-parser-js/statuses/f117f600ba6f655e78f1bd0120fc0850b2863b3c","head":{"label":"roberttod:patch-1","ref":"patch-1","sha":"f117f600ba6f655e78f1bd0120fc0850b2863b3c","user":{"login":"roberttod","id":823104,"avatar_url":"https://avatars.githubusercontent.com/u/823104?v=3","gravatar_id":"","url":"https://api.github.com/users/roberttod","html_url":"https://github.com/roberttod","followers_url":"https://api.github.com/users/roberttod/followers","following_url":"https://api.github.com/users/roberttod/following{/other_user}","gists_url":"https://api.github.com/users/roberttod/gists{/gist_id}","starred_url":"https://api.github.com/users/roberttod/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/roberttod/subscriptions","organizations_url":"https://api.github.com/users/roberttod/orgs","repos_url":"https://api.github.com/users/roberttod/repos","events_url":"https://api.github.com/users/roberttod/events{/privacy}","received_events_url":"https://api.github.com/users/roberttod/received_events","type":"User","site_admin":false},"repo":{"id":37208983,"name":"ua-parser-js","full_name":"roberttod/ua-parser-js","owner":{"login":"roberttod","id":823104,"avatar_url":"https://avatars.githubusercontent.com/u/823104?v=3","gravatar_id":"","url":"https://api.github.com/users/roberttod","html_url":"https://github.com/roberttod","followers_url":"https://api.github.com/users/roberttod/followers","following_url":"https://api.github.com/users/roberttod/following{/other_user}","gists_url":"https://api.github.com/users/roberttod/gists{/gist_id}","starred_url":"https://api.github.com/users/roberttod/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/roberttod/subscriptions","organizations_url":"https://api.github.com/users/roberttod/orgs","repos_url":"https://api.github.com/users/roberttod/repos","events_url":"https://api.github.com/users/roberttod/events{/privacy}","received_events_url":"https://api.github.com/users/roberttod/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/roberttod/ua-parser-js","description":"UAParser.js - Lightweight JavaScript-based User-Agent string parser. Supports browser & node.js environment. Also available as jQuery/Zepto plugin, Component/Bower/Meteor package, & RequireJS/AMD module","fork":true,"url":"https://api.github.com/repos/roberttod/ua-parser-js","forks_url":"https://api.github.com/repos/roberttod/ua-parser-js/forks","keys_url":"https://api.github.com/repos/roberttod/ua-parser-js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/roberttod/ua-parser-js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/roberttod/ua-parser-js/teams","hooks_url":"https://api.github.com/repos/roberttod/ua-parser-js/hooks","issue_events_url":"https://api.github.com/repos/roberttod/ua-parser-js/issues/events{/number}","events_url":"https://api.github.com/repos/roberttod/ua-parser-js/events","assignees_url":"https://api.github.com/repos/roberttod/ua-parser-js/assignees{/user}","branches_url":"https://api.github.com/repos/roberttod/ua-parser-js/branches{/branch}","tags_url":"https://api.github.com/repos/roberttod/ua-parser-js/tags","blobs_url":"https://api.github.com/repos/roberttod/ua-parser-js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/roberttod/ua-parser-js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/roberttod/ua-parser-js/git/refs{/sha}","trees_url":"https://api.github.com/repos/roberttod/ua-parser-js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/roberttod/ua-parser-js/statuses/{sha}","languages_url":"https://api.github.com/repos/roberttod/ua-parser-js/languages","stargazers_url":"https://api.github.com/repos/roberttod/ua-parser-js/stargazers","contributors_url":"https://api.github.com/repos/roberttod/ua-parser-js/contributors","subscribers_url":"https://api.github.com/repos/roberttod/ua-parser-js/subscribers","subscription_url":"https://api.github.com/repos/roberttod/ua-parser-js/subscription","commits_url":"https://api.github.com/repos/roberttod/ua-parser-js/commits{/sha}","git_commits_url":"https://api.github.com/repos/roberttod/ua-parser-js/git/commits{/sha}","comments_url":"https://api.github.com/repos/roberttod/ua-parser-js/comments{/number}","issue_comment_url":"https://api.github.com/repos/roberttod/ua-parser-js/issues/comments{/number}","contents_url":"https://api.github.com/repos/roberttod/ua-parser-js/contents/{+path}","compare_url":"https://api.github.com/repos/roberttod/ua-parser-js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/roberttod/ua-parser-js/merges","archive_url":"https://api.github.com/repos/roberttod/ua-parser-js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/roberttod/ua-parser-js/downloads","issues_url":"https://api.github.com/repos/roberttod/ua-parser-js/issues{/number}","pulls_url":"https://api.github.com/repos/roberttod/ua-parser-js/pulls{/number}","milestones_url":"https://api.github.com/repos/roberttod/ua-parser-js/milestones{/number}","notifications_url":"https://api.github.com/repos/roberttod/ua-parser-js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/roberttod/ua-parser-js/labels{/name}","releases_url":"https://api.github.com/repos/roberttod/ua-parser-js/releases{/id}","created_at":"2015-06-10T16:32:01Z","updated_at":"2015-06-10T16:32:01Z","pushed_at":"2015-06-10T16:35:17Z","git_url":"git://github.com/roberttod/ua-parser-js.git","ssh_url":"git@github.com:roberttod/ua-parser-js.git","clone_url":"https://github.com/roberttod/ua-parser-js.git","svn_url":"https://github.com/roberttod/ua-parser-js","homepage":"http://faisalman.github.io/ua-parser-js","size":2625,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"faisalman:master","ref":"master","sha":"a3e4fbe5bbb8fca45b442a321c52ed30e807a20f","user":{"login":"faisalman","id":460302,"avatar_url":"https://avatars.githubusercontent.com/u/460302?v=3","gravatar_id":"","url":"https://api.github.com/users/faisalman","html_url":"https://github.com/faisalman","followers_url":"https://api.github.com/users/faisalman/followers","following_url":"https://api.github.com/users/faisalman/following{/other_user}","gists_url":"https://api.github.com/users/faisalman/gists{/gist_id}","starred_url":"https://api.github.com/users/faisalman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/faisalman/subscriptions","organizations_url":"https://api.github.com/users/faisalman/orgs","repos_url":"https://api.github.com/users/faisalman/repos","events_url":"https://api.github.com/users/faisalman/events{/privacy}","received_events_url":"https://api.github.com/users/faisalman/received_events","type":"User","site_admin":false},"repo":{"id":3320710,"name":"ua-parser-js","full_name":"faisalman/ua-parser-js","owner":{"login":"faisalman","id":460302,"avatar_url":"https://avatars.githubusercontent.com/u/460302?v=3","gravatar_id":"","url":"https://api.github.com/users/faisalman","html_url":"https://github.com/faisalman","followers_url":"https://api.github.com/users/faisalman/followers","following_url":"https://api.github.com/users/faisalman/following{/other_user}","gists_url":"https://api.github.com/users/faisalman/gists{/gist_id}","starred_url":"https://api.github.com/users/faisalman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/faisalman/subscriptions","organizations_url":"https://api.github.com/users/faisalman/orgs","repos_url":"https://api.github.com/users/faisalman/repos","events_url":"https://api.github.com/users/faisalman/events{/privacy}","received_events_url":"https://api.github.com/users/faisalman/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/faisalman/ua-parser-js","description":"UAParser.js - Lightweight JavaScript-based User-Agent string parser. Supports browser & node.js environment. Also available as jQuery/Zepto plugin, Component/Bower/Meteor package, & RequireJS/AMD module","fork":false,"url":"https://api.github.com/repos/faisalman/ua-parser-js","forks_url":"https://api.github.com/repos/faisalman/ua-parser-js/forks","keys_url":"https://api.github.com/repos/faisalman/ua-parser-js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/faisalman/ua-parser-js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/faisalman/ua-parser-js/teams","hooks_url":"https://api.github.com/repos/faisalman/ua-parser-js/hooks","issue_events_url":"https://api.github.com/repos/faisalman/ua-parser-js/issues/events{/number}","events_url":"https://api.github.com/repos/faisalman/ua-parser-js/events","assignees_url":"https://api.github.com/repos/faisalman/ua-parser-js/assignees{/user}","branches_url":"https://api.github.com/repos/faisalman/ua-parser-js/branches{/branch}","tags_url":"https://api.github.com/repos/faisalman/ua-parser-js/tags","blobs_url":"https://api.github.com/repos/faisalman/ua-parser-js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/faisalman/ua-parser-js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/faisalman/ua-parser-js/git/refs{/sha}","trees_url":"https://api.github.com/repos/faisalman/ua-parser-js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/faisalman/ua-parser-js/statuses/{sha}","languages_url":"https://api.github.com/repos/faisalman/ua-parser-js/languages","stargazers_url":"https://api.github.com/repos/faisalman/ua-parser-js/stargazers","contributors_url":"https://api.github.com/repos/faisalman/ua-parser-js/contributors","subscribers_url":"https://api.github.com/repos/faisalman/ua-parser-js/subscribers","subscription_url":"https://api.github.com/repos/faisalman/ua-parser-js/subscription","commits_url":"https://api.github.com/repos/faisalman/ua-parser-js/commits{/sha}","git_commits_url":"https://api.github.com/repos/faisalman/ua-parser-js/git/commits{/sha}","comments_url":"https://api.github.com/repos/faisalman/ua-parser-js/comments{/number}","issue_comment_url":"https://api.github.com/repos/faisalman/ua-parser-js/issues/comments{/number}","contents_url":"https://api.github.com/repos/faisalman/ua-parser-js/contents/{+path}","compare_url":"https://api.github.com/repos/faisalman/ua-parser-js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/faisalman/ua-parser-js/merges","archive_url":"https://api.github.com/repos/faisalman/ua-parser-js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/faisalman/ua-parser-js/downloads","issues_url":"https://api.github.com/repos/faisalman/ua-parser-js/issues{/number}","pulls_url":"https://api.github.com/repos/faisalman/ua-parser-js/pulls{/number}","milestones_url":"https://api.github.com/repos/faisalman/ua-parser-js/milestones{/number}","notifications_url":"https://api.github.com/repos/faisalman/ua-parser-js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/faisalman/ua-parser-js/labels{/name}","releases_url":"https://api.github.com/repos/faisalman/ua-parser-js/releases{/id}","created_at":"2012-02-01T01:11:49Z","updated_at":"2015-06-08T23:47:34Z","pushed_at":"2015-05-11T16:46:09Z","git_url":"git://github.com/faisalman/ua-parser-js.git","ssh_url":"git@github.com:faisalman/ua-parser-js.git","clone_url":"https://github.com/faisalman/ua-parser-js.git","svn_url":"https://github.com/faisalman/ua-parser-js","homepage":"http://faisalman.github.io/ua-parser-js","size":2625,"stargazers_count":754,"watchers_count":754,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":160,"mirror_url":null,"open_issues_count":33,"forks":160,"open_issues":33,"watchers":754,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/faisalman/ua-parser-js/pulls/119"},"html":{"href":"https://github.com/faisalman/ua-parser-js/pull/119"},"issue":{"href":"https://api.github.com/repos/faisalman/ua-parser-js/issues/119"},"comments":{"href":"https://api.github.com/repos/faisalman/ua-parser-js/issues/119/comments"},"review_comments":{"href":"https://api.github.com/repos/faisalman/ua-parser-js/pulls/119/comments"},"review_comment":{"href":"https://api.github.com/repos/faisalman/ua-parser-js/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/faisalman/ua-parser-js/pulls/119/commits"},"statuses":{"href":"https://api.github.com/repos/faisalman/ua-parser-js/statuses/f117f600ba6f655e78f1bd0120fc0850b2863b3c"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":1,"deletions":1,"changed_files":1}}