{"action":"opened","number":8,"pull_request":{"url":"https://api.github.com/repos/Magnetme/mm-on-enter-viewport/pulls/8","id":60820579,"html_url":"https://github.com/Magnetme/mm-on-enter-viewport/pull/8","diff_url":"https://github.com/Magnetme/mm-on-enter-viewport/pull/8.diff","patch_url":"https://github.com/Magnetme/mm-on-enter-viewport/pull/8.patch","issue_url":"https://api.github.com/repos/Magnetme/mm-on-enter-viewport/issues/8","number":8,"state":"open","locked":false,"title":"optimize with throttle and only scope.apply when needed","user":{"login":"wouter-willems","id":3910481,"avatar_url":"https://avatars.githubusercontent.com/u/3910481?v=3","gravatar_id":"","url":"https://api.github.com/users/wouter-willems","html_url":"https://github.com/wouter-willems","followers_url":"https://api.github.com/users/wouter-willems/followers","following_url":"https://api.github.com/users/wouter-willems/following{/other_user}","gists_url":"https://api.github.com/users/wouter-willems/gists{/gist_id}","starred_url":"https://api.github.com/users/wouter-willems/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wouter-willems/subscriptions","organizations_url":"https://api.github.com/users/wouter-willems/orgs","repos_url":"https://api.github.com/users/wouter-willems/repos","events_url":"https://api.github.com/users/wouter-willems/events{/privacy}","received_events_url":"https://api.github.com/users/wouter-willems/received_events","type":"User","site_admin":false},"body":"This should help performance when there are many on-enter-viewport directives used","created_at":"2016-02-26T10:21:49Z","updated_at":"2016-02-26T10:21:49Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Magnetme/mm-on-enter-viewport/pulls/8/commits","review_comments_url":"https://api.github.com/repos/Magnetme/mm-on-enter-viewport/pulls/8/comments","review_comment_url":"https://api.github.com/repos/Magnetme/mm-on-enter-viewport/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Magnetme/mm-on-enter-viewport/issues/8/comments","statuses_url":"https://api.github.com/repos/Magnetme/mm-on-enter-viewport/statuses/df113bd29b41b0ab453012abea7eb458d2095f0b","head":{"label":"Magnetme:optimize","ref":"optimize","sha":"df113bd29b41b0ab453012abea7eb458d2095f0b","user":{"login":"Magnetme","id":3966050,"avatar_url":"https://avatars.githubusercontent.com/u/3966050?v=3","gravatar_id":"","url":"https://api.github.com/users/Magnetme","html_url":"https://github.com/Magnetme","followers_url":"https://api.github.com/users/Magnetme/followers","following_url":"https://api.github.com/users/Magnetme/following{/other_user}","gists_url":"https://api.github.com/users/Magnetme/gists{/gist_id}","starred_url":"https://api.github.com/users/Magnetme/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Magnetme/subscriptions","organizations_url":"https://api.github.com/users/Magnetme/orgs","repos_url":"https://api.github.com/users/Magnetme/repos","events_url":"https://api.github.com/users/Magnetme/events{/privacy}","received_events_url":"https://api.github.com/users/Magnetme/received_events","type":"Organization","site_admin":false},"repo":{"id":38621315,"name":"mm-on-enter-viewport","full_name":"Magnetme/mm-on-enter-viewport","owner":{"login":"Magnetme","id":3966050,"avatar_url":"https://avatars.githubusercontent.com/u/3966050?v=3","gravatar_id":"","url":"https://api.github.com/users/Magnetme","html_url":"https://github.com/Magnetme","followers_url":"https://api.github.com/users/Magnetme/followers","following_url":"https://api.github.com/users/Magnetme/following{/other_user}","gists_url":"https://api.github.com/users/Magnetme/gists{/gist_id}","starred_url":"https://api.github.com/users/Magnetme/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Magnetme/subscriptions","organizations_url":"https://api.github.com/users/Magnetme/orgs","repos_url":"https://api.github.com/users/Magnetme/repos","events_url":"https://api.github.com/users/Magnetme/events{/privacy}","received_events_url":"https://api.github.com/users/Magnetme/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Magnetme/mm-on-enter-viewport","description":"Angular Directive that detects if an element enters the viewport","fork":false,"url":"https://api.github.com/repos/Magnetme/mm-on-enter-viewport","forks_url":"https://api.github.com/repos/Magnetme/mm-on-enter-viewport/forks","keys_url":"https://api.github.com/repos/Magnetme/mm-on-enter-viewport/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Magnetme/mm-on-enter-viewport/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Magnetme/mm-on-enter-viewport/teams","hooks_url":"https://api.github.com/repos/Magnetme/mm-on-enter-viewport/hooks","issue_events_url":"https://api.github.com/repos/Magnetme/mm-on-enter-viewport/issues/events{/number}","events_url":"https://api.github.com/repos/Magnetme/mm-on-enter-viewport/events","assignees_url":"https://api.github.com/repos/Magnetme/mm-on-enter-viewport/assignees{/user}","branches_url":"https://api.github.com/repos/Magnetme/mm-on-enter-viewport/branches{/branch}","tags_url":"https://api.github.com/repos/Magnetme/mm-on-enter-viewport/tags","blobs_url":"https://api.github.com/repos/Magnetme/mm-on-enter-viewport/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Magnetme/mm-on-enter-viewport/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Magnetme/mm-on-enter-viewport/git/refs{/sha}","trees_url":"https://api.github.com/repos/Magnetme/mm-on-enter-viewport/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Magnetme/mm-on-enter-viewport/statuses/{sha}","languages_url":"https://api.github.com/repos/Magnetme/mm-on-enter-viewport/languages","stargazers_url":"https://api.github.com/repos/Magnetme/mm-on-enter-viewport/stargazers","contributors_url":"https://api.github.com/repos/Magnetme/mm-on-enter-viewport/contributors","subscribers_url":"https://api.github.com/repos/Magnetme/mm-on-enter-viewport/subscribers","subscription_url":"https://api.github.com/repos/Magnetme/mm-on-enter-viewport/subscription","commits_url":"https://api.github.com/repos/Magnetme/mm-on-enter-viewport/commits{/sha}","git_commits_url":"https://api.github.com/repos/Magnetme/mm-on-enter-viewport/git/commits{/sha}","comments_url":"https://api.github.com/repos/Magnetme/mm-on-enter-viewport/comments{/number}","issue_comment_url":"https://api.github.com/repos/Magnetme/mm-on-enter-viewport/issues/comments{/number}","contents_url":"https://api.github.com/repos/Magnetme/mm-on-enter-viewport/contents/{+path}","compare_url":"https://api.github.com/repos/Magnetme/mm-on-enter-viewport/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Magnetme/mm-on-enter-viewport/merges","archive_url":"https://api.github.com/repos/Magnetme/mm-on-enter-viewport/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Magnetme/mm-on-enter-viewport/downloads","issues_url":"https://api.github.com/repos/Magnetme/mm-on-enter-viewport/issues{/number}","pulls_url":"https://api.github.com/repos/Magnetme/mm-on-enter-viewport/pulls{/number}","milestones_url":"https://api.github.com/repos/Magnetme/mm-on-enter-viewport/milestones{/number}","notifications_url":"https://api.github.com/repos/Magnetme/mm-on-enter-viewport/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Magnetme/mm-on-enter-viewport/labels{/name}","releases_url":"https://api.github.com/repos/Magnetme/mm-on-enter-viewport/releases{/id}","deployments_url":"https://api.github.com/repos/Magnetme/mm-on-enter-viewport/deployments","created_at":"2015-07-06T13:40:57Z","updated_at":"2016-02-10T12:19:08Z","pushed_at":"2016-02-26T10:20:52Z","git_url":"git://github.com/Magnetme/mm-on-enter-viewport.git","ssh_url":"git@github.com:Magnetme/mm-on-enter-viewport.git","clone_url":"https://github.com/Magnetme/mm-on-enter-viewport.git","svn_url":"https://github.com/Magnetme/mm-on-enter-viewport","homepage":"https://magnet.me","size":19,"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":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"Magnetme:master","ref":"master","sha":"d3c0d4afb9cd6c331085213e69f1c4131d8315c0","user":{"login":"Magnetme","id":3966050,"avatar_url":"https://avatars.githubusercontent.com/u/3966050?v=3","gravatar_id":"","url":"https://api.github.com/users/Magnetme","html_url":"https://github.com/Magnetme","followers_url":"https://api.github.com/users/Magnetme/followers","following_url":"https://api.github.com/users/Magnetme/following{/other_user}","gists_url":"https://api.github.com/users/Magnetme/gists{/gist_id}","starred_url":"https://api.github.com/users/Magnetme/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Magnetme/subscriptions","organizations_url":"https://api.github.com/users/Magnetme/orgs","repos_url":"https://api.github.com/users/Magnetme/repos","events_url":"https://api.github.com/users/Magnetme/events{/privacy}","received_events_url":"https://api.github.com/users/Magnetme/received_events","type":"Organization","site_admin":false},"repo":{"id":38621315,"name":"mm-on-enter-viewport","full_name":"Magnetme/mm-on-enter-viewport","owner":{"login":"Magnetme","id":3966050,"avatar_url":"https://avatars.githubusercontent.com/u/3966050?v=3","gravatar_id":"","url":"https://api.github.com/users/Magnetme","html_url":"https://github.com/Magnetme","followers_url":"https://api.github.com/users/Magnetme/followers","following_url":"https://api.github.com/users/Magnetme/following{/other_user}","gists_url":"https://api.github.com/users/Magnetme/gists{/gist_id}","starred_url":"https://api.github.com/users/Magnetme/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Magnetme/subscriptions","organizations_url":"https://api.github.com/users/Magnetme/orgs","repos_url":"https://api.github.com/users/Magnetme/repos","events_url":"https://api.github.com/users/Magnetme/events{/privacy}","received_events_url":"https://api.github.com/users/Magnetme/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Magnetme/mm-on-enter-viewport","description":"Angular Directive that detects if an element enters the viewport","fork":false,"url":"https://api.github.com/repos/Magnetme/mm-on-enter-viewport","forks_url":"https://api.github.com/repos/Magnetme/mm-on-enter-viewport/forks","keys_url":"https://api.github.com/repos/Magnetme/mm-on-enter-viewport/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Magnetme/mm-on-enter-viewport/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Magnetme/mm-on-enter-viewport/teams","hooks_url":"https://api.github.com/repos/Magnetme/mm-on-enter-viewport/hooks","issue_events_url":"https://api.github.com/repos/Magnetme/mm-on-enter-viewport/issues/events{/number}","events_url":"https://api.github.com/repos/Magnetme/mm-on-enter-viewport/events","assignees_url":"https://api.github.com/repos/Magnetme/mm-on-enter-viewport/assignees{/user}","branches_url":"https://api.github.com/repos/Magnetme/mm-on-enter-viewport/branches{/branch}","tags_url":"https://api.github.com/repos/Magnetme/mm-on-enter-viewport/tags","blobs_url":"https://api.github.com/repos/Magnetme/mm-on-enter-viewport/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Magnetme/mm-on-enter-viewport/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Magnetme/mm-on-enter-viewport/git/refs{/sha}","trees_url":"https://api.github.com/repos/Magnetme/mm-on-enter-viewport/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Magnetme/mm-on-enter-viewport/statuses/{sha}","languages_url":"https://api.github.com/repos/Magnetme/mm-on-enter-viewport/languages","stargazers_url":"https://api.github.com/repos/Magnetme/mm-on-enter-viewport/stargazers","contributors_url":"https://api.github.com/repos/Magnetme/mm-on-enter-viewport/contributors","subscribers_url":"https://api.github.com/repos/Magnetme/mm-on-enter-viewport/subscribers","subscription_url":"https://api.github.com/repos/Magnetme/mm-on-enter-viewport/subscription","commits_url":"https://api.github.com/repos/Magnetme/mm-on-enter-viewport/commits{/sha}","git_commits_url":"https://api.github.com/repos/Magnetme/mm-on-enter-viewport/git/commits{/sha}","comments_url":"https://api.github.com/repos/Magnetme/mm-on-enter-viewport/comments{/number}","issue_comment_url":"https://api.github.com/repos/Magnetme/mm-on-enter-viewport/issues/comments{/number}","contents_url":"https://api.github.com/repos/Magnetme/mm-on-enter-viewport/contents/{+path}","compare_url":"https://api.github.com/repos/Magnetme/mm-on-enter-viewport/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Magnetme/mm-on-enter-viewport/merges","archive_url":"https://api.github.com/repos/Magnetme/mm-on-enter-viewport/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Magnetme/mm-on-enter-viewport/downloads","issues_url":"https://api.github.com/repos/Magnetme/mm-on-enter-viewport/issues{/number}","pulls_url":"https://api.github.com/repos/Magnetme/mm-on-enter-viewport/pulls{/number}","milestones_url":"https://api.github.com/repos/Magnetme/mm-on-enter-viewport/milestones{/number}","notifications_url":"https://api.github.com/repos/Magnetme/mm-on-enter-viewport/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Magnetme/mm-on-enter-viewport/labels{/name}","releases_url":"https://api.github.com/repos/Magnetme/mm-on-enter-viewport/releases{/id}","deployments_url":"https://api.github.com/repos/Magnetme/mm-on-enter-viewport/deployments","created_at":"2015-07-06T13:40:57Z","updated_at":"2016-02-10T12:19:08Z","pushed_at":"2016-02-26T10:20:52Z","git_url":"git://github.com/Magnetme/mm-on-enter-viewport.git","ssh_url":"git@github.com:Magnetme/mm-on-enter-viewport.git","clone_url":"https://github.com/Magnetme/mm-on-enter-viewport.git","svn_url":"https://github.com/Magnetme/mm-on-enter-viewport","homepage":"https://magnet.me","size":19,"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":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Magnetme/mm-on-enter-viewport/pulls/8"},"html":{"href":"https://github.com/Magnetme/mm-on-enter-viewport/pull/8"},"issue":{"href":"https://api.github.com/repos/Magnetme/mm-on-enter-viewport/issues/8"},"comments":{"href":"https://api.github.com/repos/Magnetme/mm-on-enter-viewport/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/Magnetme/mm-on-enter-viewport/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/Magnetme/mm-on-enter-viewport/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Magnetme/mm-on-enter-viewport/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/Magnetme/mm-on-enter-viewport/statuses/df113bd29b41b0ab453012abea7eb458d2095f0b"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":13,"deletions":4,"changed_files":2}}