{"action":"closed","number":58,"pull_request":{"url":"https://api.github.com/repos/jimmynotjim/scrollNav/pulls/58","id":28426270,"html_url":"https://github.com/jimmynotjim/scrollNav/pull/58","diff_url":"https://github.com/jimmynotjim/scrollNav/pull/58.diff","patch_url":"https://github.com/jimmynotjim/scrollNav/pull/58.patch","issue_url":"https://api.github.com/repos/jimmynotjim/scrollNav/issues/58","number":58,"state":"closed","locked":false,"title":"subsections: adds 'active' and 'in-view' classes","user":{"login":"frutiger","id":2180969,"avatar_url":"https://avatars.githubusercontent.com/u/2180969?v=3","gravatar_id":"","url":"https://api.github.com/users/frutiger","html_url":"https://github.com/frutiger","followers_url":"https://api.github.com/users/frutiger/followers","following_url":"https://api.github.com/users/frutiger/following{/other_user}","gists_url":"https://api.github.com/users/frutiger/gists{/gist_id}","starred_url":"https://api.github.com/users/frutiger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/frutiger/subscriptions","organizations_url":"https://api.github.com/users/frutiger/orgs","repos_url":"https://api.github.com/users/frutiger/repos","events_url":"https://api.github.com/users/frutiger/events{/privacy}","received_events_url":"https://api.github.com/users/frutiger/received_events","type":"User","site_admin":false},"body":"This commit adds the 'in-view' class to a subsection if it is in the viewport, and adds the 'active' class to the first sub-section that is in the viewport.\r\n\r\nThis is done by re-factoring the code that adds the offset data for sections and the code that checks if a section is in the viewport to a separate function and invoking these functions on subsections as well as sections.\r\n\r\nThis fixes #47.","created_at":"2015-02-01T04:37:36Z","updated_at":"2015-02-20T03:46:42Z","closed_at":"2015-02-20T03:46:41Z","merged_at":"2015-02-20T03:46:41Z","merge_commit_sha":"f134a534e88fdce391be529ce127acfa0b083135","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/jimmynotjim/scrollNav/pulls/58/commits","review_comments_url":"https://api.github.com/repos/jimmynotjim/scrollNav/pulls/58/comments","review_comment_url":"https://api.github.com/repos/jimmynotjim/scrollNav/pulls/comments/{number}","comments_url":"https://api.github.com/repos/jimmynotjim/scrollNav/issues/58/comments","statuses_url":"https://api.github.com/repos/jimmynotjim/scrollNav/statuses/5055f5d7cfaed1ce7f7149ac4795efca1d6336d6","head":{"label":"frutiger:subsection-classes","ref":"subsection-classes","sha":"5055f5d7cfaed1ce7f7149ac4795efca1d6336d6","user":{"login":"frutiger","id":2180969,"avatar_url":"https://avatars.githubusercontent.com/u/2180969?v=3","gravatar_id":"","url":"https://api.github.com/users/frutiger","html_url":"https://github.com/frutiger","followers_url":"https://api.github.com/users/frutiger/followers","following_url":"https://api.github.com/users/frutiger/following{/other_user}","gists_url":"https://api.github.com/users/frutiger/gists{/gist_id}","starred_url":"https://api.github.com/users/frutiger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/frutiger/subscriptions","organizations_url":"https://api.github.com/users/frutiger/orgs","repos_url":"https://api.github.com/users/frutiger/repos","events_url":"https://api.github.com/users/frutiger/events{/privacy}","received_events_url":"https://api.github.com/users/frutiger/received_events","type":"User","site_admin":false},"repo":{"id":30136348,"name":"scrollNav","full_name":"frutiger/scrollNav","owner":{"login":"frutiger","id":2180969,"avatar_url":"https://avatars.githubusercontent.com/u/2180969?v=3","gravatar_id":"","url":"https://api.github.com/users/frutiger","html_url":"https://github.com/frutiger","followers_url":"https://api.github.com/users/frutiger/followers","following_url":"https://api.github.com/users/frutiger/following{/other_user}","gists_url":"https://api.github.com/users/frutiger/gists{/gist_id}","starred_url":"https://api.github.com/users/frutiger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/frutiger/subscriptions","organizations_url":"https://api.github.com/users/frutiger/orgs","repos_url":"https://api.github.com/users/frutiger/repos","events_url":"https://api.github.com/users/frutiger/events{/privacy}","received_events_url":"https://api.github.com/users/frutiger/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/frutiger/scrollNav","description":"A jQuery plugin for building a scrolling navigation menu","fork":true,"url":"https://api.github.com/repos/frutiger/scrollNav","forks_url":"https://api.github.com/repos/frutiger/scrollNav/forks","keys_url":"https://api.github.com/repos/frutiger/scrollNav/keys{/key_id}","collaborators_url":"https://api.github.com/repos/frutiger/scrollNav/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/frutiger/scrollNav/teams","hooks_url":"https://api.github.com/repos/frutiger/scrollNav/hooks","issue_events_url":"https://api.github.com/repos/frutiger/scrollNav/issues/events{/number}","events_url":"https://api.github.com/repos/frutiger/scrollNav/events","assignees_url":"https://api.github.com/repos/frutiger/scrollNav/assignees{/user}","branches_url":"https://api.github.com/repos/frutiger/scrollNav/branches{/branch}","tags_url":"https://api.github.com/repos/frutiger/scrollNav/tags","blobs_url":"https://api.github.com/repos/frutiger/scrollNav/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/frutiger/scrollNav/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/frutiger/scrollNav/git/refs{/sha}","trees_url":"https://api.github.com/repos/frutiger/scrollNav/git/trees{/sha}","statuses_url":"https://api.github.com/repos/frutiger/scrollNav/statuses/{sha}","languages_url":"https://api.github.com/repos/frutiger/scrollNav/languages","stargazers_url":"https://api.github.com/repos/frutiger/scrollNav/stargazers","contributors_url":"https://api.github.com/repos/frutiger/scrollNav/contributors","subscribers_url":"https://api.github.com/repos/frutiger/scrollNav/subscribers","subscription_url":"https://api.github.com/repos/frutiger/scrollNav/subscription","commits_url":"https://api.github.com/repos/frutiger/scrollNav/commits{/sha}","git_commits_url":"https://api.github.com/repos/frutiger/scrollNav/git/commits{/sha}","comments_url":"https://api.github.com/repos/frutiger/scrollNav/comments{/number}","issue_comment_url":"https://api.github.com/repos/frutiger/scrollNav/issues/comments/{number}","contents_url":"https://api.github.com/repos/frutiger/scrollNav/contents/{+path}","compare_url":"https://api.github.com/repos/frutiger/scrollNav/compare/{base}...{head}","merges_url":"https://api.github.com/repos/frutiger/scrollNav/merges","archive_url":"https://api.github.com/repos/frutiger/scrollNav/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/frutiger/scrollNav/downloads","issues_url":"https://api.github.com/repos/frutiger/scrollNav/issues{/number}","pulls_url":"https://api.github.com/repos/frutiger/scrollNav/pulls{/number}","milestones_url":"https://api.github.com/repos/frutiger/scrollNav/milestones{/number}","notifications_url":"https://api.github.com/repos/frutiger/scrollNav/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/frutiger/scrollNav/labels{/name}","releases_url":"https://api.github.com/repos/frutiger/scrollNav/releases{/id}","created_at":"2015-02-01T04:36:10Z","updated_at":"2015-02-01T04:36:10Z","pushed_at":"2015-02-01T04:36:50Z","git_url":"git://github.com/frutiger/scrollNav.git","ssh_url":"git@github.com:frutiger/scrollNav.git","clone_url":"https://github.com/frutiger/scrollNav.git","svn_url":"https://github.com/frutiger/scrollNav","homepage":"http://scrollnav.com","size":372,"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":"jimmynotjim:master","ref":"master","sha":"0c48ae0f7213653ca4bc978b7e2ecd22ebc3362c","user":{"login":"jimmynotjim","id":1280430,"avatar_url":"https://avatars.githubusercontent.com/u/1280430?v=3","gravatar_id":"","url":"https://api.github.com/users/jimmynotjim","html_url":"https://github.com/jimmynotjim","followers_url":"https://api.github.com/users/jimmynotjim/followers","following_url":"https://api.github.com/users/jimmynotjim/following{/other_user}","gists_url":"https://api.github.com/users/jimmynotjim/gists{/gist_id}","starred_url":"https://api.github.com/users/jimmynotjim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jimmynotjim/subscriptions","organizations_url":"https://api.github.com/users/jimmynotjim/orgs","repos_url":"https://api.github.com/users/jimmynotjim/repos","events_url":"https://api.github.com/users/jimmynotjim/events{/privacy}","received_events_url":"https://api.github.com/users/jimmynotjim/received_events","type":"User","site_admin":false},"repo":{"id":7473744,"name":"scrollNav","full_name":"jimmynotjim/scrollNav","owner":{"login":"jimmynotjim","id":1280430,"avatar_url":"https://avatars.githubusercontent.com/u/1280430?v=3","gravatar_id":"","url":"https://api.github.com/users/jimmynotjim","html_url":"https://github.com/jimmynotjim","followers_url":"https://api.github.com/users/jimmynotjim/followers","following_url":"https://api.github.com/users/jimmynotjim/following{/other_user}","gists_url":"https://api.github.com/users/jimmynotjim/gists{/gist_id}","starred_url":"https://api.github.com/users/jimmynotjim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jimmynotjim/subscriptions","organizations_url":"https://api.github.com/users/jimmynotjim/orgs","repos_url":"https://api.github.com/users/jimmynotjim/repos","events_url":"https://api.github.com/users/jimmynotjim/events{/privacy}","received_events_url":"https://api.github.com/users/jimmynotjim/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jimmynotjim/scrollNav","description":"A jQuery plugin for building a scrolling navigation menu","fork":false,"url":"https://api.github.com/repos/jimmynotjim/scrollNav","forks_url":"https://api.github.com/repos/jimmynotjim/scrollNav/forks","keys_url":"https://api.github.com/repos/jimmynotjim/scrollNav/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jimmynotjim/scrollNav/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jimmynotjim/scrollNav/teams","hooks_url":"https://api.github.com/repos/jimmynotjim/scrollNav/hooks","issue_events_url":"https://api.github.com/repos/jimmynotjim/scrollNav/issues/events{/number}","events_url":"https://api.github.com/repos/jimmynotjim/scrollNav/events","assignees_url":"https://api.github.com/repos/jimmynotjim/scrollNav/assignees{/user}","branches_url":"https://api.github.com/repos/jimmynotjim/scrollNav/branches{/branch}","tags_url":"https://api.github.com/repos/jimmynotjim/scrollNav/tags","blobs_url":"https://api.github.com/repos/jimmynotjim/scrollNav/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jimmynotjim/scrollNav/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jimmynotjim/scrollNav/git/refs{/sha}","trees_url":"https://api.github.com/repos/jimmynotjim/scrollNav/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jimmynotjim/scrollNav/statuses/{sha}","languages_url":"https://api.github.com/repos/jimmynotjim/scrollNav/languages","stargazers_url":"https://api.github.com/repos/jimmynotjim/scrollNav/stargazers","contributors_url":"https://api.github.com/repos/jimmynotjim/scrollNav/contributors","subscribers_url":"https://api.github.com/repos/jimmynotjim/scrollNav/subscribers","subscription_url":"https://api.github.com/repos/jimmynotjim/scrollNav/subscription","commits_url":"https://api.github.com/repos/jimmynotjim/scrollNav/commits{/sha}","git_commits_url":"https://api.github.com/repos/jimmynotjim/scrollNav/git/commits{/sha}","comments_url":"https://api.github.com/repos/jimmynotjim/scrollNav/comments{/number}","issue_comment_url":"https://api.github.com/repos/jimmynotjim/scrollNav/issues/comments/{number}","contents_url":"https://api.github.com/repos/jimmynotjim/scrollNav/contents/{+path}","compare_url":"https://api.github.com/repos/jimmynotjim/scrollNav/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jimmynotjim/scrollNav/merges","archive_url":"https://api.github.com/repos/jimmynotjim/scrollNav/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jimmynotjim/scrollNav/downloads","issues_url":"https://api.github.com/repos/jimmynotjim/scrollNav/issues{/number}","pulls_url":"https://api.github.com/repos/jimmynotjim/scrollNav/pulls{/number}","milestones_url":"https://api.github.com/repos/jimmynotjim/scrollNav/milestones{/number}","notifications_url":"https://api.github.com/repos/jimmynotjim/scrollNav/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jimmynotjim/scrollNav/labels{/name}","releases_url":"https://api.github.com/repos/jimmynotjim/scrollNav/releases{/id}","created_at":"2013-01-06T22:50:56Z","updated_at":"2015-02-20T03:46:41Z","pushed_at":"2015-02-20T03:46:41Z","git_url":"git://github.com/jimmynotjim/scrollNav.git","ssh_url":"git@github.com:jimmynotjim/scrollNav.git","clone_url":"https://github.com/jimmynotjim/scrollNav.git","svn_url":"https://github.com/jimmynotjim/scrollNav","homepage":"http://scrollnav.com","size":1399,"stargazers_count":249,"watchers_count":249,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":89,"mirror_url":null,"open_issues_count":3,"forks":89,"open_issues":3,"watchers":249,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jimmynotjim/scrollNav/pulls/58"},"html":{"href":"https://github.com/jimmynotjim/scrollNav/pull/58"},"issue":{"href":"https://api.github.com/repos/jimmynotjim/scrollNav/issues/58"},"comments":{"href":"https://api.github.com/repos/jimmynotjim/scrollNav/issues/58/comments"},"review_comments":{"href":"https://api.github.com/repos/jimmynotjim/scrollNav/pulls/58/comments"},"review_comment":{"href":"https://api.github.com/repos/jimmynotjim/scrollNav/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/jimmynotjim/scrollNav/pulls/58/commits"},"statuses":{"href":"https://api.github.com/repos/jimmynotjim/scrollNav/statuses/5055f5d7cfaed1ce7f7149ac4795efca1d6336d6"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"jimmynotjim","id":1280430,"avatar_url":"https://avatars.githubusercontent.com/u/1280430?v=3","gravatar_id":"","url":"https://api.github.com/users/jimmynotjim","html_url":"https://github.com/jimmynotjim","followers_url":"https://api.github.com/users/jimmynotjim/followers","following_url":"https://api.github.com/users/jimmynotjim/following{/other_user}","gists_url":"https://api.github.com/users/jimmynotjim/gists{/gist_id}","starred_url":"https://api.github.com/users/jimmynotjim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jimmynotjim/subscriptions","organizations_url":"https://api.github.com/users/jimmynotjim/orgs","repos_url":"https://api.github.com/users/jimmynotjim/repos","events_url":"https://api.github.com/users/jimmynotjim/events{/privacy}","received_events_url":"https://api.github.com/users/jimmynotjim/received_events","type":"User","site_admin":false},"comments":1,"review_comments":0,"commits":1,"additions":35,"deletions":11,"changed_files":1}}