{"action":"created","comment":{"url":"https://api.github.com/repos/borismus/webvr-polyfill/pulls/comments/54689539","id":54689539,"diff_hunk":"@@ -16,4 +16,11 @@ var WebVRPolyfill = require('./webvr-polyfill.js');\n \n // Initialize a WebVRConfig just in case.\n window.WebVRConfig = window.WebVRConfig || {};\n-new WebVRPolyfill();\n+\n+if (!window.WebVRConfig.DEFER_INITIALIZATION) {\n+  new WebVRPolyfill();\n+} else {\n+  window.InitializeWebVRPolyfill = function() {","path":"src/main.js","position":9,"original_position":9,"commit_id":"55feecbdeee18b404aad7bd3fbc060d2448b8f1f","original_commit_id":"55feecbdeee18b404aad7bd3fbc060d2448b8f1f","user":{"login":"cvan","id":203725,"avatar_url":"https://avatars.githubusercontent.com/u/203725?v=3","gravatar_id":"","url":"https://api.github.com/users/cvan","html_url":"https://github.com/cvan","followers_url":"https://api.github.com/users/cvan/followers","following_url":"https://api.github.com/users/cvan/following{/other_user}","gists_url":"https://api.github.com/users/cvan/gists{/gist_id}","starred_url":"https://api.github.com/users/cvan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cvan/subscriptions","organizations_url":"https://api.github.com/users/cvan/orgs","repos_url":"https://api.github.com/users/cvan/repos","events_url":"https://api.github.com/users/cvan/events{/privacy}","received_events_url":"https://api.github.com/users/cvan/received_events","type":"User","site_admin":false},"body":"[kind of like this](https://github.com/stefanpenner/es6-promise#auto-polyfill)","created_at":"2016-03-02T07:52:40Z","updated_at":"2016-03-02T07:52:40Z","html_url":"https://github.com/borismus/webvr-polyfill/pull/33#discussion_r54689539","pull_request_url":"https://api.github.com/repos/borismus/webvr-polyfill/pulls/33","_links":{"self":{"href":"https://api.github.com/repos/borismus/webvr-polyfill/pulls/comments/54689539"},"html":{"href":"https://github.com/borismus/webvr-polyfill/pull/33#discussion_r54689539"},"pull_request":{"href":"https://api.github.com/repos/borismus/webvr-polyfill/pulls/33"}}},"pull_request":{"url":"https://api.github.com/repos/borismus/webvr-polyfill/pulls/33","id":60559130,"html_url":"https://github.com/borismus/webvr-polyfill/pull/33","diff_url":"https://github.com/borismus/webvr-polyfill/pull/33.diff","patch_url":"https://github.com/borismus/webvr-polyfill/pull/33.patch","issue_url":"https://api.github.com/repos/borismus/webvr-polyfill/issues/33","number":33,"state":"open","locked":false,"title":"Update polyfill to use WebVR v1 API","user":{"login":"toji","id":805273,"avatar_url":"https://avatars.githubusercontent.com/u/805273?v=3","gravatar_id":"","url":"https://api.github.com/users/toji","html_url":"https://github.com/toji","followers_url":"https://api.github.com/users/toji/followers","following_url":"https://api.github.com/users/toji/following{/other_user}","gists_url":"https://api.github.com/users/toji/gists{/gist_id}","starred_url":"https://api.github.com/users/toji/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/toji/subscriptions","organizations_url":"https://api.github.com/users/toji/orgs","repos_url":"https://api.github.com/users/toji/repos","events_url":"https://api.github.com/users/toji/events{/privacy}","received_events_url":"https://api.github.com/users/toji/received_events","type":"User","site_admin":false},"body":"Now includes distortion and querying of device parameters from DPDB. Old API\r\nis still accessible when setting WebVRConfig.ENABLE_DEPRECATED_API to true.","created_at":"2016-02-24T18:54:50Z","updated_at":"2016-03-02T07:52:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1f59251476437f3d30d8d6dbf6f2d04b4ca42317","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/borismus/webvr-polyfill/pulls/33/commits","review_comments_url":"https://api.github.com/repos/borismus/webvr-polyfill/pulls/33/comments","review_comment_url":"https://api.github.com/repos/borismus/webvr-polyfill/pulls/comments{/number}","comments_url":"https://api.github.com/repos/borismus/webvr-polyfill/issues/33/comments","statuses_url":"https://api.github.com/repos/borismus/webvr-polyfill/statuses/55feecbdeee18b404aad7bd3fbc060d2448b8f1f","head":{"label":"toji:webvr_1","ref":"webvr_1","sha":"55feecbdeee18b404aad7bd3fbc060d2448b8f1f","user":{"login":"toji","id":805273,"avatar_url":"https://avatars.githubusercontent.com/u/805273?v=3","gravatar_id":"","url":"https://api.github.com/users/toji","html_url":"https://github.com/toji","followers_url":"https://api.github.com/users/toji/followers","following_url":"https://api.github.com/users/toji/following{/other_user}","gists_url":"https://api.github.com/users/toji/gists{/gist_id}","starred_url":"https://api.github.com/users/toji/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/toji/subscriptions","organizations_url":"https://api.github.com/users/toji/orgs","repos_url":"https://api.github.com/users/toji/repos","events_url":"https://api.github.com/users/toji/events{/privacy}","received_events_url":"https://api.github.com/users/toji/received_events","type":"User","site_admin":false},"repo":{"id":51535988,"name":"webvr-polyfill","full_name":"toji/webvr-polyfill","owner":{"login":"toji","id":805273,"avatar_url":"https://avatars.githubusercontent.com/u/805273?v=3","gravatar_id":"","url":"https://api.github.com/users/toji","html_url":"https://github.com/toji","followers_url":"https://api.github.com/users/toji/followers","following_url":"https://api.github.com/users/toji/following{/other_user}","gists_url":"https://api.github.com/users/toji/gists{/gist_id}","starred_url":"https://api.github.com/users/toji/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/toji/subscriptions","organizations_url":"https://api.github.com/users/toji/orgs","repos_url":"https://api.github.com/users/toji/repos","events_url":"https://api.github.com/users/toji/events{/privacy}","received_events_url":"https://api.github.com/users/toji/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/toji/webvr-polyfill","description":"Use WebVR today, without requiring a special browser build.","fork":true,"url":"https://api.github.com/repos/toji/webvr-polyfill","forks_url":"https://api.github.com/repos/toji/webvr-polyfill/forks","keys_url":"https://api.github.com/repos/toji/webvr-polyfill/keys{/key_id}","collaborators_url":"https://api.github.com/repos/toji/webvr-polyfill/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/toji/webvr-polyfill/teams","hooks_url":"https://api.github.com/repos/toji/webvr-polyfill/hooks","issue_events_url":"https://api.github.com/repos/toji/webvr-polyfill/issues/events{/number}","events_url":"https://api.github.com/repos/toji/webvr-polyfill/events","assignees_url":"https://api.github.com/repos/toji/webvr-polyfill/assignees{/user}","branches_url":"https://api.github.com/repos/toji/webvr-polyfill/branches{/branch}","tags_url":"https://api.github.com/repos/toji/webvr-polyfill/tags","blobs_url":"https://api.github.com/repos/toji/webvr-polyfill/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/toji/webvr-polyfill/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/toji/webvr-polyfill/git/refs{/sha}","trees_url":"https://api.github.com/repos/toji/webvr-polyfill/git/trees{/sha}","statuses_url":"https://api.github.com/repos/toji/webvr-polyfill/statuses/{sha}","languages_url":"https://api.github.com/repos/toji/webvr-polyfill/languages","stargazers_url":"https://api.github.com/repos/toji/webvr-polyfill/stargazers","contributors_url":"https://api.github.com/repos/toji/webvr-polyfill/contributors","subscribers_url":"https://api.github.com/repos/toji/webvr-polyfill/subscribers","subscription_url":"https://api.github.com/repos/toji/webvr-polyfill/subscription","commits_url":"https://api.github.com/repos/toji/webvr-polyfill/commits{/sha}","git_commits_url":"https://api.github.com/repos/toji/webvr-polyfill/git/commits{/sha}","comments_url":"https://api.github.com/repos/toji/webvr-polyfill/comments{/number}","issue_comment_url":"https://api.github.com/repos/toji/webvr-polyfill/issues/comments{/number}","contents_url":"https://api.github.com/repos/toji/webvr-polyfill/contents/{+path}","compare_url":"https://api.github.com/repos/toji/webvr-polyfill/compare/{base}...{head}","merges_url":"https://api.github.com/repos/toji/webvr-polyfill/merges","archive_url":"https://api.github.com/repos/toji/webvr-polyfill/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/toji/webvr-polyfill/downloads","issues_url":"https://api.github.com/repos/toji/webvr-polyfill/issues{/number}","pulls_url":"https://api.github.com/repos/toji/webvr-polyfill/pulls{/number}","milestones_url":"https://api.github.com/repos/toji/webvr-polyfill/milestones{/number}","notifications_url":"https://api.github.com/repos/toji/webvr-polyfill/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/toji/webvr-polyfill/labels{/name}","releases_url":"https://api.github.com/repos/toji/webvr-polyfill/releases{/id}","deployments_url":"https://api.github.com/repos/toji/webvr-polyfill/deployments","created_at":"2016-02-11T18:20:52Z","updated_at":"2016-02-11T18:20:53Z","pushed_at":"2016-03-02T02:37:54Z","git_url":"git://github.com/toji/webvr-polyfill.git","ssh_url":"git@github.com:toji/webvr-polyfill.git","clone_url":"https://github.com/toji/webvr-polyfill.git","svn_url":"https://github.com/toji/webvr-polyfill","homepage":"http://smus.com/responsive-vr/","size":3530,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"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":"borismus:master","ref":"master","sha":"608a63695f95e0f12947cda87c90f378633e8513","user":{"login":"borismus","id":277632,"avatar_url":"https://avatars.githubusercontent.com/u/277632?v=3","gravatar_id":"","url":"https://api.github.com/users/borismus","html_url":"https://github.com/borismus","followers_url":"https://api.github.com/users/borismus/followers","following_url":"https://api.github.com/users/borismus/following{/other_user}","gists_url":"https://api.github.com/users/borismus/gists{/gist_id}","starred_url":"https://api.github.com/users/borismus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/borismus/subscriptions","organizations_url":"https://api.github.com/users/borismus/orgs","repos_url":"https://api.github.com/users/borismus/repos","events_url":"https://api.github.com/users/borismus/events{/privacy}","received_events_url":"https://api.github.com/users/borismus/received_events","type":"User","site_admin":false},"repo":{"id":30087179,"name":"webvr-polyfill","full_name":"borismus/webvr-polyfill","owner":{"login":"borismus","id":277632,"avatar_url":"https://avatars.githubusercontent.com/u/277632?v=3","gravatar_id":"","url":"https://api.github.com/users/borismus","html_url":"https://github.com/borismus","followers_url":"https://api.github.com/users/borismus/followers","following_url":"https://api.github.com/users/borismus/following{/other_user}","gists_url":"https://api.github.com/users/borismus/gists{/gist_id}","starred_url":"https://api.github.com/users/borismus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/borismus/subscriptions","organizations_url":"https://api.github.com/users/borismus/orgs","repos_url":"https://api.github.com/users/borismus/repos","events_url":"https://api.github.com/users/borismus/events{/privacy}","received_events_url":"https://api.github.com/users/borismus/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/borismus/webvr-polyfill","description":"Use WebVR today, without requiring a special browser build.","fork":false,"url":"https://api.github.com/repos/borismus/webvr-polyfill","forks_url":"https://api.github.com/repos/borismus/webvr-polyfill/forks","keys_url":"https://api.github.com/repos/borismus/webvr-polyfill/keys{/key_id}","collaborators_url":"https://api.github.com/repos/borismus/webvr-polyfill/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/borismus/webvr-polyfill/teams","hooks_url":"https://api.github.com/repos/borismus/webvr-polyfill/hooks","issue_events_url":"https://api.github.com/repos/borismus/webvr-polyfill/issues/events{/number}","events_url":"https://api.github.com/repos/borismus/webvr-polyfill/events","assignees_url":"https://api.github.com/repos/borismus/webvr-polyfill/assignees{/user}","branches_url":"https://api.github.com/repos/borismus/webvr-polyfill/branches{/branch}","tags_url":"https://api.github.com/repos/borismus/webvr-polyfill/tags","blobs_url":"https://api.github.com/repos/borismus/webvr-polyfill/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/borismus/webvr-polyfill/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/borismus/webvr-polyfill/git/refs{/sha}","trees_url":"https://api.github.com/repos/borismus/webvr-polyfill/git/trees{/sha}","statuses_url":"https://api.github.com/repos/borismus/webvr-polyfill/statuses/{sha}","languages_url":"https://api.github.com/repos/borismus/webvr-polyfill/languages","stargazers_url":"https://api.github.com/repos/borismus/webvr-polyfill/stargazers","contributors_url":"https://api.github.com/repos/borismus/webvr-polyfill/contributors","subscribers_url":"https://api.github.com/repos/borismus/webvr-polyfill/subscribers","subscription_url":"https://api.github.com/repos/borismus/webvr-polyfill/subscription","commits_url":"https://api.github.com/repos/borismus/webvr-polyfill/commits{/sha}","git_commits_url":"https://api.github.com/repos/borismus/webvr-polyfill/git/commits{/sha}","comments_url":"https://api.github.com/repos/borismus/webvr-polyfill/comments{/number}","issue_comment_url":"https://api.github.com/repos/borismus/webvr-polyfill/issues/comments{/number}","contents_url":"https://api.github.com/repos/borismus/webvr-polyfill/contents/{+path}","compare_url":"https://api.github.com/repos/borismus/webvr-polyfill/compare/{base}...{head}","merges_url":"https://api.github.com/repos/borismus/webvr-polyfill/merges","archive_url":"https://api.github.com/repos/borismus/webvr-polyfill/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/borismus/webvr-polyfill/downloads","issues_url":"https://api.github.com/repos/borismus/webvr-polyfill/issues{/number}","pulls_url":"https://api.github.com/repos/borismus/webvr-polyfill/pulls{/number}","milestones_url":"https://api.github.com/repos/borismus/webvr-polyfill/milestones{/number}","notifications_url":"https://api.github.com/repos/borismus/webvr-polyfill/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/borismus/webvr-polyfill/labels{/name}","releases_url":"https://api.github.com/repos/borismus/webvr-polyfill/releases{/id}","deployments_url":"https://api.github.com/repos/borismus/webvr-polyfill/deployments","created_at":"2015-01-30T19:23:46Z","updated_at":"2016-02-29T21:11:29Z","pushed_at":"2016-03-02T02:37:55Z","git_url":"git://github.com/borismus/webvr-polyfill.git","ssh_url":"git@github.com:borismus/webvr-polyfill.git","clone_url":"https://github.com/borismus/webvr-polyfill.git","svn_url":"https://github.com/borismus/webvr-polyfill","homepage":"http://smus.com/responsive-vr/","size":3569,"stargazers_count":112,"watchers_count":112,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":28,"mirror_url":null,"open_issues_count":8,"forks":28,"open_issues":8,"watchers":112,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/borismus/webvr-polyfill/pulls/33"},"html":{"href":"https://github.com/borismus/webvr-polyfill/pull/33"},"issue":{"href":"https://api.github.com/repos/borismus/webvr-polyfill/issues/33"},"comments":{"href":"https://api.github.com/repos/borismus/webvr-polyfill/issues/33/comments"},"review_comments":{"href":"https://api.github.com/repos/borismus/webvr-polyfill/pulls/33/comments"},"review_comment":{"href":"https://api.github.com/repos/borismus/webvr-polyfill/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/borismus/webvr-polyfill/pulls/33/commits"},"statuses":{"href":"https://api.github.com/repos/borismus/webvr-polyfill/statuses/55feecbdeee18b404aad7bd3fbc060d2448b8f1f"}}}}