{"action":"created","comment":{"url":"https://api.github.com/repos/mozilla/kuma/pulls/comments/25010693","id":25010693,"diff_hunk":"@@ -582,13 +582,15 @@\n       Make Compare selected revisions button sticky when scrolling history page\n     */\n     (function() {\n-        var button = $('.revision-list-controls .link-btn');\n-        var revisionButtonOffset = $(button).offset().top;\n-        $(window).on('scroll', function() {\n-            var $compareButton = $(button);\n-            var scroll = $(this).scrollTop();\n-            $compareButton.toggleClass('fixed', scroll >= revisionButtonOffset);\n-        });\n+        var $button = $('.revision-list-controls .link-btn');\n+        if($button.length) {\n+            var revisionButtonOffset = $($button).offset().top;\n+            $(window).on('scroll', function() {","path":"media/redesign/js/wiki.js","position":14,"original_position":14,"commit_id":"c2862094a1524a03628b1be114d58a54c9252fca","original_commit_id":"c2862094a1524a03628b1be114d58a54c9252fca","user":{"login":"darkwing","id":46655,"avatar_url":"https://avatars.githubusercontent.com/u/46655?v=3","gravatar_id":"","url":"https://api.github.com/users/darkwing","html_url":"https://github.com/darkwing","followers_url":"https://api.github.com/users/darkwing/followers","following_url":"https://api.github.com/users/darkwing/following{/other_user}","gists_url":"https://api.github.com/users/darkwing/gists{/gist_id}","starred_url":"https://api.github.com/users/darkwing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/darkwing/subscriptions","organizations_url":"https://api.github.com/users/darkwing/orgs","repos_url":"https://api.github.com/users/darkwing/repos","events_url":"https://api.github.com/users/darkwing/events{/privacy}","received_events_url":"https://api.github.com/users/darkwing/received_events","type":"User","site_admin":false},"body":"This can be $(win)","created_at":"2015-02-19T18:17:47Z","updated_at":"2015-02-19T18:17:47Z","html_url":"https://github.com/mozilla/kuma/pull/3086#discussion_r25010693","pull_request_url":"https://api.github.com/repos/mozilla/kuma/pulls/3086","_links":{"self":{"href":"https://api.github.com/repos/mozilla/kuma/pulls/comments/25010693"},"html":{"href":"https://github.com/mozilla/kuma/pull/3086#discussion_r25010693"},"pull_request":{"href":"https://api.github.com/repos/mozilla/kuma/pulls/3086"}}},"pull_request":{"url":"https://api.github.com/repos/mozilla/kuma/pulls/3086","id":29634983,"html_url":"https://github.com/mozilla/kuma/pull/3086","diff_url":"https://github.com/mozilla/kuma/pull/3086.diff","patch_url":"https://github.com/mozilla/kuma/pull/3086.patch","issue_url":"https://api.github.com/repos/mozilla/kuma/issues/3086","number":3086,"state":"open","locked":false,"title":"Fix Bug 1134718: JS typeerror","user":{"login":"stephaniehobson","id":854701,"avatar_url":"https://avatars.githubusercontent.com/u/854701?v=3","gravatar_id":"","url":"https://api.github.com/users/stephaniehobson","html_url":"https://github.com/stephaniehobson","followers_url":"https://api.github.com/users/stephaniehobson/followers","following_url":"https://api.github.com/users/stephaniehobson/following{/other_user}","gists_url":"https://api.github.com/users/stephaniehobson/gists{/gist_id}","starred_url":"https://api.github.com/users/stephaniehobson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stephaniehobson/subscriptions","organizations_url":"https://api.github.com/users/stephaniehobson/orgs","repos_url":"https://api.github.com/users/stephaniehobson/repos","events_url":"https://api.github.com/users/stephaniehobson/events{/privacy}","received_events_url":"https://api.github.com/users/stephaniehobson/received_events","type":"User","site_admin":false},"body":"Now checks button exists before trying to act on it.\r\n\r\nStuff further down in the file has probably been broken since this pushed - youTube tracking and anything relying on debounce :/","created_at":"2015-02-19T18:15:14Z","updated_at":"2015-02-19T18:17:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6c84a98863f833588270f9537c594f0bb958f650","assignee":{"login":"darkwing","id":46655,"avatar_url":"https://avatars.githubusercontent.com/u/46655?v=3","gravatar_id":"","url":"https://api.github.com/users/darkwing","html_url":"https://github.com/darkwing","followers_url":"https://api.github.com/users/darkwing/followers","following_url":"https://api.github.com/users/darkwing/following{/other_user}","gists_url":"https://api.github.com/users/darkwing/gists{/gist_id}","starred_url":"https://api.github.com/users/darkwing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/darkwing/subscriptions","organizations_url":"https://api.github.com/users/darkwing/orgs","repos_url":"https://api.github.com/users/darkwing/repos","events_url":"https://api.github.com/users/darkwing/events{/privacy}","received_events_url":"https://api.github.com/users/darkwing/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/mozilla/kuma/pulls/3086/commits","review_comments_url":"https://api.github.com/repos/mozilla/kuma/pulls/3086/comments","review_comment_url":"https://api.github.com/repos/mozilla/kuma/pulls/comments/{number}","comments_url":"https://api.github.com/repos/mozilla/kuma/issues/3086/comments","statuses_url":"https://api.github.com/repos/mozilla/kuma/statuses/c2862094a1524a03628b1be114d58a54c9252fca","head":{"label":"stephaniehobson:bug-1134718-js-typeerror-offset","ref":"bug-1134718-js-typeerror-offset","sha":"c2862094a1524a03628b1be114d58a54c9252fca","user":{"login":"stephaniehobson","id":854701,"avatar_url":"https://avatars.githubusercontent.com/u/854701?v=3","gravatar_id":"","url":"https://api.github.com/users/stephaniehobson","html_url":"https://github.com/stephaniehobson","followers_url":"https://api.github.com/users/stephaniehobson/followers","following_url":"https://api.github.com/users/stephaniehobson/following{/other_user}","gists_url":"https://api.github.com/users/stephaniehobson/gists{/gist_id}","starred_url":"https://api.github.com/users/stephaniehobson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stephaniehobson/subscriptions","organizations_url":"https://api.github.com/users/stephaniehobson/orgs","repos_url":"https://api.github.com/users/stephaniehobson/repos","events_url":"https://api.github.com/users/stephaniehobson/events{/privacy}","received_events_url":"https://api.github.com/users/stephaniehobson/received_events","type":"User","site_admin":false},"repo":{"id":20421309,"name":"kuma","full_name":"stephaniehobson/kuma","owner":{"login":"stephaniehobson","id":854701,"avatar_url":"https://avatars.githubusercontent.com/u/854701?v=3","gravatar_id":"","url":"https://api.github.com/users/stephaniehobson","html_url":"https://github.com/stephaniehobson","followers_url":"https://api.github.com/users/stephaniehobson/followers","following_url":"https://api.github.com/users/stephaniehobson/following{/other_user}","gists_url":"https://api.github.com/users/stephaniehobson/gists{/gist_id}","starred_url":"https://api.github.com/users/stephaniehobson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stephaniehobson/subscriptions","organizations_url":"https://api.github.com/users/stephaniehobson/orgs","repos_url":"https://api.github.com/users/stephaniehobson/repos","events_url":"https://api.github.com/users/stephaniehobson/events{/privacy}","received_events_url":"https://api.github.com/users/stephaniehobson/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/stephaniehobson/kuma","description":"The Django project that powers MDN.","fork":true,"url":"https://api.github.com/repos/stephaniehobson/kuma","forks_url":"https://api.github.com/repos/stephaniehobson/kuma/forks","keys_url":"https://api.github.com/repos/stephaniehobson/kuma/keys{/key_id}","collaborators_url":"https://api.github.com/repos/stephaniehobson/kuma/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/stephaniehobson/kuma/teams","hooks_url":"https://api.github.com/repos/stephaniehobson/kuma/hooks","issue_events_url":"https://api.github.com/repos/stephaniehobson/kuma/issues/events{/number}","events_url":"https://api.github.com/repos/stephaniehobson/kuma/events","assignees_url":"https://api.github.com/repos/stephaniehobson/kuma/assignees{/user}","branches_url":"https://api.github.com/repos/stephaniehobson/kuma/branches{/branch}","tags_url":"https://api.github.com/repos/stephaniehobson/kuma/tags","blobs_url":"https://api.github.com/repos/stephaniehobson/kuma/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/stephaniehobson/kuma/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/stephaniehobson/kuma/git/refs{/sha}","trees_url":"https://api.github.com/repos/stephaniehobson/kuma/git/trees{/sha}","statuses_url":"https://api.github.com/repos/stephaniehobson/kuma/statuses/{sha}","languages_url":"https://api.github.com/repos/stephaniehobson/kuma/languages","stargazers_url":"https://api.github.com/repos/stephaniehobson/kuma/stargazers","contributors_url":"https://api.github.com/repos/stephaniehobson/kuma/contributors","subscribers_url":"https://api.github.com/repos/stephaniehobson/kuma/subscribers","subscription_url":"https://api.github.com/repos/stephaniehobson/kuma/subscription","commits_url":"https://api.github.com/repos/stephaniehobson/kuma/commits{/sha}","git_commits_url":"https://api.github.com/repos/stephaniehobson/kuma/git/commits{/sha}","comments_url":"https://api.github.com/repos/stephaniehobson/kuma/comments{/number}","issue_comment_url":"https://api.github.com/repos/stephaniehobson/kuma/issues/comments/{number}","contents_url":"https://api.github.com/repos/stephaniehobson/kuma/contents/{+path}","compare_url":"https://api.github.com/repos/stephaniehobson/kuma/compare/{base}...{head}","merges_url":"https://api.github.com/repos/stephaniehobson/kuma/merges","archive_url":"https://api.github.com/repos/stephaniehobson/kuma/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/stephaniehobson/kuma/downloads","issues_url":"https://api.github.com/repos/stephaniehobson/kuma/issues{/number}","pulls_url":"https://api.github.com/repos/stephaniehobson/kuma/pulls{/number}","milestones_url":"https://api.github.com/repos/stephaniehobson/kuma/milestones{/number}","notifications_url":"https://api.github.com/repos/stephaniehobson/kuma/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/stephaniehobson/kuma/labels{/name}","releases_url":"https://api.github.com/repos/stephaniehobson/kuma/releases{/id}","created_at":"2014-06-02T22:03:22Z","updated_at":"2015-02-19T18:12:54Z","pushed_at":"2015-02-19T18:13:57Z","git_url":"git://github.com/stephaniehobson/kuma.git","ssh_url":"git@github.com:stephaniehobson/kuma.git","clone_url":"https://github.com/stephaniehobson/kuma.git","svn_url":"https://github.com/stephaniehobson/kuma","homepage":"https://developer.mozilla.org","size":69707,"stargazers_count":0,"watchers_count":0,"language":"Python","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":"mozilla:master","ref":"master","sha":"c43127bbff9fc4915759bf9f37e41de57a20e64e","user":{"login":"mozilla","id":131524,"avatar_url":"https://avatars.githubusercontent.com/u/131524?v=3","gravatar_id":"","url":"https://api.github.com/users/mozilla","html_url":"https://github.com/mozilla","followers_url":"https://api.github.com/users/mozilla/followers","following_url":"https://api.github.com/users/mozilla/following{/other_user}","gists_url":"https://api.github.com/users/mozilla/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla/subscriptions","organizations_url":"https://api.github.com/users/mozilla/orgs","repos_url":"https://api.github.com/users/mozilla/repos","events_url":"https://api.github.com/users/mozilla/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla/received_events","type":"Organization","site_admin":false},"repo":{"id":1352520,"name":"kuma","full_name":"mozilla/kuma","owner":{"login":"mozilla","id":131524,"avatar_url":"https://avatars.githubusercontent.com/u/131524?v=3","gravatar_id":"","url":"https://api.github.com/users/mozilla","html_url":"https://github.com/mozilla","followers_url":"https://api.github.com/users/mozilla/followers","following_url":"https://api.github.com/users/mozilla/following{/other_user}","gists_url":"https://api.github.com/users/mozilla/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla/subscriptions","organizations_url":"https://api.github.com/users/mozilla/orgs","repos_url":"https://api.github.com/users/mozilla/repos","events_url":"https://api.github.com/users/mozilla/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mozilla/kuma","description":"The Django project that powers MDN.","fork":false,"url":"https://api.github.com/repos/mozilla/kuma","forks_url":"https://api.github.com/repos/mozilla/kuma/forks","keys_url":"https://api.github.com/repos/mozilla/kuma/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mozilla/kuma/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mozilla/kuma/teams","hooks_url":"https://api.github.com/repos/mozilla/kuma/hooks","issue_events_url":"https://api.github.com/repos/mozilla/kuma/issues/events{/number}","events_url":"https://api.github.com/repos/mozilla/kuma/events","assignees_url":"https://api.github.com/repos/mozilla/kuma/assignees{/user}","branches_url":"https://api.github.com/repos/mozilla/kuma/branches{/branch}","tags_url":"https://api.github.com/repos/mozilla/kuma/tags","blobs_url":"https://api.github.com/repos/mozilla/kuma/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mozilla/kuma/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mozilla/kuma/git/refs{/sha}","trees_url":"https://api.github.com/repos/mozilla/kuma/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mozilla/kuma/statuses/{sha}","languages_url":"https://api.github.com/repos/mozilla/kuma/languages","stargazers_url":"https://api.github.com/repos/mozilla/kuma/stargazers","contributors_url":"https://api.github.com/repos/mozilla/kuma/contributors","subscribers_url":"https://api.github.com/repos/mozilla/kuma/subscribers","subscription_url":"https://api.github.com/repos/mozilla/kuma/subscription","commits_url":"https://api.github.com/repos/mozilla/kuma/commits{/sha}","git_commits_url":"https://api.github.com/repos/mozilla/kuma/git/commits{/sha}","comments_url":"https://api.github.com/repos/mozilla/kuma/comments{/number}","issue_comment_url":"https://api.github.com/repos/mozilla/kuma/issues/comments/{number}","contents_url":"https://api.github.com/repos/mozilla/kuma/contents/{+path}","compare_url":"https://api.github.com/repos/mozilla/kuma/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mozilla/kuma/merges","archive_url":"https://api.github.com/repos/mozilla/kuma/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mozilla/kuma/downloads","issues_url":"https://api.github.com/repos/mozilla/kuma/issues{/number}","pulls_url":"https://api.github.com/repos/mozilla/kuma/pulls{/number}","milestones_url":"https://api.github.com/repos/mozilla/kuma/milestones{/number}","notifications_url":"https://api.github.com/repos/mozilla/kuma/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mozilla/kuma/labels{/name}","releases_url":"https://api.github.com/repos/mozilla/kuma/releases{/id}","created_at":"2011-02-10T21:48:06Z","updated_at":"2015-02-18T02:25:34Z","pushed_at":"2015-02-19T16:16:45Z","git_url":"git://github.com/mozilla/kuma.git","ssh_url":"git@github.com:mozilla/kuma.git","clone_url":"https://github.com/mozilla/kuma.git","svn_url":"https://github.com/mozilla/kuma","homepage":"https://developer.mozilla.org","size":99346,"stargazers_count":541,"watchers_count":541,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":333,"mirror_url":null,"open_issues_count":11,"forks":333,"open_issues":11,"watchers":541,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mozilla/kuma/pulls/3086"},"html":{"href":"https://github.com/mozilla/kuma/pull/3086"},"issue":{"href":"https://api.github.com/repos/mozilla/kuma/issues/3086"},"comments":{"href":"https://api.github.com/repos/mozilla/kuma/issues/3086/comments"},"review_comments":{"href":"https://api.github.com/repos/mozilla/kuma/pulls/3086/comments"},"review_comment":{"href":"https://api.github.com/repos/mozilla/kuma/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/mozilla/kuma/pulls/3086/commits"},"statuses":{"href":"https://api.github.com/repos/mozilla/kuma/statuses/c2862094a1524a03628b1be114d58a54c9252fca"}}}}