{"action":"created","comment":{"url":"https://api.github.com/repos/Financial-Times/next-wrapper/pulls/comments/23015140","id":23015140,"diff_hunk":"@@ -0,0 +1,21 @@\n+<script>\n+\n+    (function (polyfillService, mainJs) {\n+\n+        function addScript(src){\n+            document.documentElement.classList.add('js-success');\n+            var o = document.createElement('script');\n+            o.async = o.defer = true;\n+            o.src = src;\n+            var s = document.getElementsByTagName('script')[0];\n+            s.parentNode.insertBefore(o, s.nextSibling);\n+        }\n+\n+        if(cutsTheMustard){\n+            addScript(polyfillService);","path":"templates/addscripts.html","position":15,"original_position":15,"commit_id":"22f214202d491be78315411e15051a8ac9247e26","original_commit_id":"22f214202d491be78315411e15051a8ac9247e26","user":{"login":"commuterjoy","id":84996,"avatar_url":"https://avatars.githubusercontent.com/u/84996?v=3","gravatar_id":"","url":"https://api.github.com/users/commuterjoy","html_url":"https://github.com/commuterjoy","followers_url":"https://api.github.com/users/commuterjoy/followers","following_url":"https://api.github.com/users/commuterjoy/following{/other_user}","gists_url":"https://api.github.com/users/commuterjoy/gists{/gist_id}","starred_url":"https://api.github.com/users/commuterjoy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/commuterjoy/subscriptions","organizations_url":"https://api.github.com/users/commuterjoy/orgs","repos_url":"https://api.github.com/users/commuterjoy/repos","events_url":"https://api.github.com/users/commuterjoy/events{/privacy}","received_events_url":"https://api.github.com/users/commuterjoy/received_events","type":"User","site_admin":false},"body":"```\r\nscripts.forEach(function (path) {\r\n    addScript(path)\r\n})\r\n```","created_at":"2015-01-15T15:08:59Z","updated_at":"2015-01-15T15:08:59Z","html_url":"https://github.com/Financial-Times/next-wrapper/pull/45#discussion_r23015140","pull_request_url":"https://api.github.com/repos/Financial-Times/next-wrapper/pulls/45","_links":{"self":{"href":"https://api.github.com/repos/Financial-Times/next-wrapper/pulls/comments/23015140"},"html":{"href":"https://github.com/Financial-Times/next-wrapper/pull/45#discussion_r23015140"},"pull_request":{"href":"https://api.github.com/repos/Financial-Times/next-wrapper/pulls/45"}}},"pull_request":{"url":"https://api.github.com/repos/Financial-Times/next-wrapper/pulls/45","id":27433419,"html_url":"https://github.com/Financial-Times/next-wrapper/pull/45","diff_url":"https://github.com/Financial-Times/next-wrapper/pull/45.diff","patch_url":"https://github.com/Financial-Times/next-wrapper/pull/45.patch","issue_url":"https://api.github.com/repos/Financial-Times/next-wrapper/issues/45","number":45,"state":"open","locked":false,"title":"Adding addscripts partial","user":{"login":"aintgoin2goa","id":18816,"avatar_url":"https://avatars.githubusercontent.com/u/18816?v=3","gravatar_id":"","url":"https://api.github.com/users/aintgoin2goa","html_url":"https://github.com/aintgoin2goa","followers_url":"https://api.github.com/users/aintgoin2goa/followers","following_url":"https://api.github.com/users/aintgoin2goa/following{/other_user}","gists_url":"https://api.github.com/users/aintgoin2goa/gists{/gist_id}","starred_url":"https://api.github.com/users/aintgoin2goa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aintgoin2goa/subscriptions","organizations_url":"https://api.github.com/users/aintgoin2goa/orgs","repos_url":"https://api.github.com/users/aintgoin2goa/repos","events_url":"https://api.github.com/users/aintgoin2goa/events{/privacy}","received_events_url":"https://api.github.com/users/aintgoin2goa/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-01-15T14:53:05Z","updated_at":"2015-01-15T15:08:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c122326e0e8883f1109f63471b4c27e0a19fa4b7","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Financial-Times/next-wrapper/pulls/45/commits","review_comments_url":"https://api.github.com/repos/Financial-Times/next-wrapper/pulls/45/comments","review_comment_url":"https://api.github.com/repos/Financial-Times/next-wrapper/pulls/comments/{number}","comments_url":"https://api.github.com/repos/Financial-Times/next-wrapper/issues/45/comments","statuses_url":"https://api.github.com/repos/Financial-Times/next-wrapper/statuses/22f214202d491be78315411e15051a8ac9247e26","head":{"label":"Financial-Times:addscripts-partial","ref":"addscripts-partial","sha":"22f214202d491be78315411e15051a8ac9247e26","user":{"login":"Financial-Times","id":3502508,"avatar_url":"https://avatars.githubusercontent.com/u/3502508?v=3","gravatar_id":"","url":"https://api.github.com/users/Financial-Times","html_url":"https://github.com/Financial-Times","followers_url":"https://api.github.com/users/Financial-Times/followers","following_url":"https://api.github.com/users/Financial-Times/following{/other_user}","gists_url":"https://api.github.com/users/Financial-Times/gists{/gist_id}","starred_url":"https://api.github.com/users/Financial-Times/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Financial-Times/subscriptions","organizations_url":"https://api.github.com/users/Financial-Times/orgs","repos_url":"https://api.github.com/users/Financial-Times/repos","events_url":"https://api.github.com/users/Financial-Times/events{/privacy}","received_events_url":"https://api.github.com/users/Financial-Times/received_events","type":"Organization","site_admin":false},"repo":{"id":26114649,"name":"next-wrapper","full_name":"Financial-Times/next-wrapper","owner":{"login":"Financial-Times","id":3502508,"avatar_url":"https://avatars.githubusercontent.com/u/3502508?v=3","gravatar_id":"","url":"https://api.github.com/users/Financial-Times","html_url":"https://github.com/Financial-Times","followers_url":"https://api.github.com/users/Financial-Times/followers","following_url":"https://api.github.com/users/Financial-Times/following{/other_user}","gists_url":"https://api.github.com/users/Financial-Times/gists{/gist_id}","starred_url":"https://api.github.com/users/Financial-Times/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Financial-Times/subscriptions","organizations_url":"https://api.github.com/users/Financial-Times/orgs","repos_url":"https://api.github.com/users/Financial-Times/repos","events_url":"https://api.github.com/users/Financial-Times/events{/privacy}","received_events_url":"https://api.github.com/users/Financial-Times/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Financial-Times/next-wrapper","description":"Shared templates and view helpers for ft next sites","fork":false,"url":"https://api.github.com/repos/Financial-Times/next-wrapper","forks_url":"https://api.github.com/repos/Financial-Times/next-wrapper/forks","keys_url":"https://api.github.com/repos/Financial-Times/next-wrapper/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Financial-Times/next-wrapper/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Financial-Times/next-wrapper/teams","hooks_url":"https://api.github.com/repos/Financial-Times/next-wrapper/hooks","issue_events_url":"https://api.github.com/repos/Financial-Times/next-wrapper/issues/events{/number}","events_url":"https://api.github.com/repos/Financial-Times/next-wrapper/events","assignees_url":"https://api.github.com/repos/Financial-Times/next-wrapper/assignees{/user}","branches_url":"https://api.github.com/repos/Financial-Times/next-wrapper/branches{/branch}","tags_url":"https://api.github.com/repos/Financial-Times/next-wrapper/tags","blobs_url":"https://api.github.com/repos/Financial-Times/next-wrapper/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Financial-Times/next-wrapper/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Financial-Times/next-wrapper/git/refs{/sha}","trees_url":"https://api.github.com/repos/Financial-Times/next-wrapper/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Financial-Times/next-wrapper/statuses/{sha}","languages_url":"https://api.github.com/repos/Financial-Times/next-wrapper/languages","stargazers_url":"https://api.github.com/repos/Financial-Times/next-wrapper/stargazers","contributors_url":"https://api.github.com/repos/Financial-Times/next-wrapper/contributors","subscribers_url":"https://api.github.com/repos/Financial-Times/next-wrapper/subscribers","subscription_url":"https://api.github.com/repos/Financial-Times/next-wrapper/subscription","commits_url":"https://api.github.com/repos/Financial-Times/next-wrapper/commits{/sha}","git_commits_url":"https://api.github.com/repos/Financial-Times/next-wrapper/git/commits{/sha}","comments_url":"https://api.github.com/repos/Financial-Times/next-wrapper/comments{/number}","issue_comment_url":"https://api.github.com/repos/Financial-Times/next-wrapper/issues/comments/{number}","contents_url":"https://api.github.com/repos/Financial-Times/next-wrapper/contents/{+path}","compare_url":"https://api.github.com/repos/Financial-Times/next-wrapper/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Financial-Times/next-wrapper/merges","archive_url":"https://api.github.com/repos/Financial-Times/next-wrapper/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Financial-Times/next-wrapper/downloads","issues_url":"https://api.github.com/repos/Financial-Times/next-wrapper/issues{/number}","pulls_url":"https://api.github.com/repos/Financial-Times/next-wrapper/pulls{/number}","milestones_url":"https://api.github.com/repos/Financial-Times/next-wrapper/milestones{/number}","notifications_url":"https://api.github.com/repos/Financial-Times/next-wrapper/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Financial-Times/next-wrapper/labels{/name}","releases_url":"https://api.github.com/repos/Financial-Times/next-wrapper/releases{/id}","created_at":"2014-11-03T10:56:15Z","updated_at":"2015-01-02T16:17:40Z","pushed_at":"2015-01-15T14:52:49Z","git_url":"git://github.com/Financial-Times/next-wrapper.git","ssh_url":"git@github.com:Financial-Times/next-wrapper.git","clone_url":"https://github.com/Financial-Times/next-wrapper.git","svn_url":"https://github.com/Financial-Times/next-wrapper","homepage":"","size":2080,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"Financial-Times:master","ref":"master","sha":"8ea320677d44e4dbcbca014d5287c8c5739df4d7","user":{"login":"Financial-Times","id":3502508,"avatar_url":"https://avatars.githubusercontent.com/u/3502508?v=3","gravatar_id":"","url":"https://api.github.com/users/Financial-Times","html_url":"https://github.com/Financial-Times","followers_url":"https://api.github.com/users/Financial-Times/followers","following_url":"https://api.github.com/users/Financial-Times/following{/other_user}","gists_url":"https://api.github.com/users/Financial-Times/gists{/gist_id}","starred_url":"https://api.github.com/users/Financial-Times/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Financial-Times/subscriptions","organizations_url":"https://api.github.com/users/Financial-Times/orgs","repos_url":"https://api.github.com/users/Financial-Times/repos","events_url":"https://api.github.com/users/Financial-Times/events{/privacy}","received_events_url":"https://api.github.com/users/Financial-Times/received_events","type":"Organization","site_admin":false},"repo":{"id":26114649,"name":"next-wrapper","full_name":"Financial-Times/next-wrapper","owner":{"login":"Financial-Times","id":3502508,"avatar_url":"https://avatars.githubusercontent.com/u/3502508?v=3","gravatar_id":"","url":"https://api.github.com/users/Financial-Times","html_url":"https://github.com/Financial-Times","followers_url":"https://api.github.com/users/Financial-Times/followers","following_url":"https://api.github.com/users/Financial-Times/following{/other_user}","gists_url":"https://api.github.com/users/Financial-Times/gists{/gist_id}","starred_url":"https://api.github.com/users/Financial-Times/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Financial-Times/subscriptions","organizations_url":"https://api.github.com/users/Financial-Times/orgs","repos_url":"https://api.github.com/users/Financial-Times/repos","events_url":"https://api.github.com/users/Financial-Times/events{/privacy}","received_events_url":"https://api.github.com/users/Financial-Times/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Financial-Times/next-wrapper","description":"Shared templates and view helpers for ft next sites","fork":false,"url":"https://api.github.com/repos/Financial-Times/next-wrapper","forks_url":"https://api.github.com/repos/Financial-Times/next-wrapper/forks","keys_url":"https://api.github.com/repos/Financial-Times/next-wrapper/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Financial-Times/next-wrapper/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Financial-Times/next-wrapper/teams","hooks_url":"https://api.github.com/repos/Financial-Times/next-wrapper/hooks","issue_events_url":"https://api.github.com/repos/Financial-Times/next-wrapper/issues/events{/number}","events_url":"https://api.github.com/repos/Financial-Times/next-wrapper/events","assignees_url":"https://api.github.com/repos/Financial-Times/next-wrapper/assignees{/user}","branches_url":"https://api.github.com/repos/Financial-Times/next-wrapper/branches{/branch}","tags_url":"https://api.github.com/repos/Financial-Times/next-wrapper/tags","blobs_url":"https://api.github.com/repos/Financial-Times/next-wrapper/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Financial-Times/next-wrapper/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Financial-Times/next-wrapper/git/refs{/sha}","trees_url":"https://api.github.com/repos/Financial-Times/next-wrapper/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Financial-Times/next-wrapper/statuses/{sha}","languages_url":"https://api.github.com/repos/Financial-Times/next-wrapper/languages","stargazers_url":"https://api.github.com/repos/Financial-Times/next-wrapper/stargazers","contributors_url":"https://api.github.com/repos/Financial-Times/next-wrapper/contributors","subscribers_url":"https://api.github.com/repos/Financial-Times/next-wrapper/subscribers","subscription_url":"https://api.github.com/repos/Financial-Times/next-wrapper/subscription","commits_url":"https://api.github.com/repos/Financial-Times/next-wrapper/commits{/sha}","git_commits_url":"https://api.github.com/repos/Financial-Times/next-wrapper/git/commits{/sha}","comments_url":"https://api.github.com/repos/Financial-Times/next-wrapper/comments{/number}","issue_comment_url":"https://api.github.com/repos/Financial-Times/next-wrapper/issues/comments/{number}","contents_url":"https://api.github.com/repos/Financial-Times/next-wrapper/contents/{+path}","compare_url":"https://api.github.com/repos/Financial-Times/next-wrapper/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Financial-Times/next-wrapper/merges","archive_url":"https://api.github.com/repos/Financial-Times/next-wrapper/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Financial-Times/next-wrapper/downloads","issues_url":"https://api.github.com/repos/Financial-Times/next-wrapper/issues{/number}","pulls_url":"https://api.github.com/repos/Financial-Times/next-wrapper/pulls{/number}","milestones_url":"https://api.github.com/repos/Financial-Times/next-wrapper/milestones{/number}","notifications_url":"https://api.github.com/repos/Financial-Times/next-wrapper/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Financial-Times/next-wrapper/labels{/name}","releases_url":"https://api.github.com/repos/Financial-Times/next-wrapper/releases{/id}","created_at":"2014-11-03T10:56:15Z","updated_at":"2015-01-02T16:17:40Z","pushed_at":"2015-01-15T14:52:49Z","git_url":"git://github.com/Financial-Times/next-wrapper.git","ssh_url":"git@github.com:Financial-Times/next-wrapper.git","clone_url":"https://github.com/Financial-Times/next-wrapper.git","svn_url":"https://github.com/Financial-Times/next-wrapper","homepage":"","size":2080,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Financial-Times/next-wrapper/pulls/45"},"html":{"href":"https://github.com/Financial-Times/next-wrapper/pull/45"},"issue":{"href":"https://api.github.com/repos/Financial-Times/next-wrapper/issues/45"},"comments":{"href":"https://api.github.com/repos/Financial-Times/next-wrapper/issues/45/comments"},"review_comments":{"href":"https://api.github.com/repos/Financial-Times/next-wrapper/pulls/45/comments"},"review_comment":{"href":"https://api.github.com/repos/Financial-Times/next-wrapper/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/Financial-Times/next-wrapper/pulls/45/commits"},"statuses":{"href":"https://api.github.com/repos/Financial-Times/next-wrapper/statuses/22f214202d491be78315411e15051a8ac9247e26"}}}}