{"action":"opened","number":24,"pull_request":{"url":"https://api.github.com/repos/allenRoyston/ngCroppie/pulls/24","id":99579103,"html_url":"https://github.com/allenRoyston/ngCroppie/pull/24","diff_url":"https://github.com/allenRoyston/ngCroppie/pull/24.diff","patch_url":"https://github.com/allenRoyston/ngCroppie/pull/24.patch","issue_url":"https://api.github.com/repos/allenRoyston/ngCroppie/issues/24","number":24,"state":"open","locked":false,"title":"Modified setInterval initialization. Additional event listeners","user":{"login":"stasinua","id":13312879,"avatar_url":"https://avatars.githubusercontent.com/u/13312879?v=3","gravatar_id":"","url":"https://api.github.com/users/stasinua","html_url":"https://github.com/stasinua","followers_url":"https://api.github.com/users/stasinua/followers","following_url":"https://api.github.com/users/stasinua/following{/other_user}","gists_url":"https://api.github.com/users/stasinua/gists{/gist_id}","starred_url":"https://api.github.com/users/stasinua/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stasinua/subscriptions","organizations_url":"https://api.github.com/users/stasinua/orgs","repos_url":"https://api.github.com/users/stasinua/repos","events_url":"https://api.github.com/users/stasinua/events{/privacy}","received_events_url":"https://api.github.com/users/stasinua/received_events","type":"User","site_admin":false},"body":"Original solution provided needless image requests after ngCroppie initialization. Placing setInterval to \"mousedown\" event listener will allow us to use setInterval only when user is interacting with canvas, so we can avoid needless requests and possible endless setInterval loop(in case of user left the page opened without any actions).\r\nAdditional \"wheel\" event listener added to prevent conflict with original Croppie \"wheel\" event listener.\r\nAdditional event listeners: \"mouseleave, mouseout\" was added to make sure that we clear created interval when user move his mouse pointer out of ngCroppie box.","created_at":"2016-12-28T18:31:10Z","updated_at":"2016-12-28T18:31:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/allenRoyston/ngCroppie/pulls/24/commits","review_comments_url":"https://api.github.com/repos/allenRoyston/ngCroppie/pulls/24/comments","review_comment_url":"https://api.github.com/repos/allenRoyston/ngCroppie/pulls/comments{/number}","comments_url":"https://api.github.com/repos/allenRoyston/ngCroppie/issues/24/comments","statuses_url":"https://api.github.com/repos/allenRoyston/ngCroppie/statuses/be57867324932156740cacde1cd3cdfe22ec7d0f","head":{"label":"stasinua:updatesWatcher_optimization","ref":"updatesWatcher_optimization","sha":"be57867324932156740cacde1cd3cdfe22ec7d0f","user":{"login":"stasinua","id":13312879,"avatar_url":"https://avatars.githubusercontent.com/u/13312879?v=3","gravatar_id":"","url":"https://api.github.com/users/stasinua","html_url":"https://github.com/stasinua","followers_url":"https://api.github.com/users/stasinua/followers","following_url":"https://api.github.com/users/stasinua/following{/other_user}","gists_url":"https://api.github.com/users/stasinua/gists{/gist_id}","starred_url":"https://api.github.com/users/stasinua/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stasinua/subscriptions","organizations_url":"https://api.github.com/users/stasinua/orgs","repos_url":"https://api.github.com/users/stasinua/repos","events_url":"https://api.github.com/users/stasinua/events{/privacy}","received_events_url":"https://api.github.com/users/stasinua/received_events","type":"User","site_admin":false},"repo":{"id":77551110,"name":"ngCroppie","full_name":"stasinua/ngCroppie","owner":{"login":"stasinua","id":13312879,"avatar_url":"https://avatars.githubusercontent.com/u/13312879?v=3","gravatar_id":"","url":"https://api.github.com/users/stasinua","html_url":"https://github.com/stasinua","followers_url":"https://api.github.com/users/stasinua/followers","following_url":"https://api.github.com/users/stasinua/following{/other_user}","gists_url":"https://api.github.com/users/stasinua/gists{/gist_id}","starred_url":"https://api.github.com/users/stasinua/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stasinua/subscriptions","organizations_url":"https://api.github.com/users/stasinua/orgs","repos_url":"https://api.github.com/users/stasinua/repos","events_url":"https://api.github.com/users/stasinua/events{/privacy}","received_events_url":"https://api.github.com/users/stasinua/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/stasinua/ngCroppie","description":"An Angular module for the awesome Croppie.js!","fork":true,"url":"https://api.github.com/repos/stasinua/ngCroppie","forks_url":"https://api.github.com/repos/stasinua/ngCroppie/forks","keys_url":"https://api.github.com/repos/stasinua/ngCroppie/keys{/key_id}","collaborators_url":"https://api.github.com/repos/stasinua/ngCroppie/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/stasinua/ngCroppie/teams","hooks_url":"https://api.github.com/repos/stasinua/ngCroppie/hooks","issue_events_url":"https://api.github.com/repos/stasinua/ngCroppie/issues/events{/number}","events_url":"https://api.github.com/repos/stasinua/ngCroppie/events","assignees_url":"https://api.github.com/repos/stasinua/ngCroppie/assignees{/user}","branches_url":"https://api.github.com/repos/stasinua/ngCroppie/branches{/branch}","tags_url":"https://api.github.com/repos/stasinua/ngCroppie/tags","blobs_url":"https://api.github.com/repos/stasinua/ngCroppie/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/stasinua/ngCroppie/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/stasinua/ngCroppie/git/refs{/sha}","trees_url":"https://api.github.com/repos/stasinua/ngCroppie/git/trees{/sha}","statuses_url":"https://api.github.com/repos/stasinua/ngCroppie/statuses/{sha}","languages_url":"https://api.github.com/repos/stasinua/ngCroppie/languages","stargazers_url":"https://api.github.com/repos/stasinua/ngCroppie/stargazers","contributors_url":"https://api.github.com/repos/stasinua/ngCroppie/contributors","subscribers_url":"https://api.github.com/repos/stasinua/ngCroppie/subscribers","subscription_url":"https://api.github.com/repos/stasinua/ngCroppie/subscription","commits_url":"https://api.github.com/repos/stasinua/ngCroppie/commits{/sha}","git_commits_url":"https://api.github.com/repos/stasinua/ngCroppie/git/commits{/sha}","comments_url":"https://api.github.com/repos/stasinua/ngCroppie/comments{/number}","issue_comment_url":"https://api.github.com/repos/stasinua/ngCroppie/issues/comments{/number}","contents_url":"https://api.github.com/repos/stasinua/ngCroppie/contents/{+path}","compare_url":"https://api.github.com/repos/stasinua/ngCroppie/compare/{base}...{head}","merges_url":"https://api.github.com/repos/stasinua/ngCroppie/merges","archive_url":"https://api.github.com/repos/stasinua/ngCroppie/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/stasinua/ngCroppie/downloads","issues_url":"https://api.github.com/repos/stasinua/ngCroppie/issues{/number}","pulls_url":"https://api.github.com/repos/stasinua/ngCroppie/pulls{/number}","milestones_url":"https://api.github.com/repos/stasinua/ngCroppie/milestones{/number}","notifications_url":"https://api.github.com/repos/stasinua/ngCroppie/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/stasinua/ngCroppie/labels{/name}","releases_url":"https://api.github.com/repos/stasinua/ngCroppie/releases{/id}","deployments_url":"https://api.github.com/repos/stasinua/ngCroppie/deployments","created_at":"2016-12-28T17:53:28Z","updated_at":"2016-12-28T17:53:30Z","pushed_at":"2016-12-28T18:19:20Z","git_url":"git://github.com/stasinua/ngCroppie.git","ssh_url":"git@github.com:stasinua/ngCroppie.git","clone_url":"https://github.com/stasinua/ngCroppie.git","svn_url":"https://github.com/stasinua/ngCroppie","homepage":"https://allenroyston.herokuapp.com/access/acr-croppie/","size":31,"stargazers_count":0,"watchers_count":0,"language":"CSS","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":"allenRoyston:master","ref":"master","sha":"284efee908706dcaa3d0e804d2f3f6b07d803f6a","user":{"login":"allenRoyston","id":7491856,"avatar_url":"https://avatars.githubusercontent.com/u/7491856?v=3","gravatar_id":"","url":"https://api.github.com/users/allenRoyston","html_url":"https://github.com/allenRoyston","followers_url":"https://api.github.com/users/allenRoyston/followers","following_url":"https://api.github.com/users/allenRoyston/following{/other_user}","gists_url":"https://api.github.com/users/allenRoyston/gists{/gist_id}","starred_url":"https://api.github.com/users/allenRoyston/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/allenRoyston/subscriptions","organizations_url":"https://api.github.com/users/allenRoyston/orgs","repos_url":"https://api.github.com/users/allenRoyston/repos","events_url":"https://api.github.com/users/allenRoyston/events{/privacy}","received_events_url":"https://api.github.com/users/allenRoyston/received_events","type":"User","site_admin":false},"repo":{"id":48515978,"name":"ngCroppie","full_name":"allenRoyston/ngCroppie","owner":{"login":"allenRoyston","id":7491856,"avatar_url":"https://avatars.githubusercontent.com/u/7491856?v=3","gravatar_id":"","url":"https://api.github.com/users/allenRoyston","html_url":"https://github.com/allenRoyston","followers_url":"https://api.github.com/users/allenRoyston/followers","following_url":"https://api.github.com/users/allenRoyston/following{/other_user}","gists_url":"https://api.github.com/users/allenRoyston/gists{/gist_id}","starred_url":"https://api.github.com/users/allenRoyston/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/allenRoyston/subscriptions","organizations_url":"https://api.github.com/users/allenRoyston/orgs","repos_url":"https://api.github.com/users/allenRoyston/repos","events_url":"https://api.github.com/users/allenRoyston/events{/privacy}","received_events_url":"https://api.github.com/users/allenRoyston/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/allenRoyston/ngCroppie","description":"An Angular module for the awesome Croppie.js!","fork":false,"url":"https://api.github.com/repos/allenRoyston/ngCroppie","forks_url":"https://api.github.com/repos/allenRoyston/ngCroppie/forks","keys_url":"https://api.github.com/repos/allenRoyston/ngCroppie/keys{/key_id}","collaborators_url":"https://api.github.com/repos/allenRoyston/ngCroppie/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/allenRoyston/ngCroppie/teams","hooks_url":"https://api.github.com/repos/allenRoyston/ngCroppie/hooks","issue_events_url":"https://api.github.com/repos/allenRoyston/ngCroppie/issues/events{/number}","events_url":"https://api.github.com/repos/allenRoyston/ngCroppie/events","assignees_url":"https://api.github.com/repos/allenRoyston/ngCroppie/assignees{/user}","branches_url":"https://api.github.com/repos/allenRoyston/ngCroppie/branches{/branch}","tags_url":"https://api.github.com/repos/allenRoyston/ngCroppie/tags","blobs_url":"https://api.github.com/repos/allenRoyston/ngCroppie/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/allenRoyston/ngCroppie/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/allenRoyston/ngCroppie/git/refs{/sha}","trees_url":"https://api.github.com/repos/allenRoyston/ngCroppie/git/trees{/sha}","statuses_url":"https://api.github.com/repos/allenRoyston/ngCroppie/statuses/{sha}","languages_url":"https://api.github.com/repos/allenRoyston/ngCroppie/languages","stargazers_url":"https://api.github.com/repos/allenRoyston/ngCroppie/stargazers","contributors_url":"https://api.github.com/repos/allenRoyston/ngCroppie/contributors","subscribers_url":"https://api.github.com/repos/allenRoyston/ngCroppie/subscribers","subscription_url":"https://api.github.com/repos/allenRoyston/ngCroppie/subscription","commits_url":"https://api.github.com/repos/allenRoyston/ngCroppie/commits{/sha}","git_commits_url":"https://api.github.com/repos/allenRoyston/ngCroppie/git/commits{/sha}","comments_url":"https://api.github.com/repos/allenRoyston/ngCroppie/comments{/number}","issue_comment_url":"https://api.github.com/repos/allenRoyston/ngCroppie/issues/comments{/number}","contents_url":"https://api.github.com/repos/allenRoyston/ngCroppie/contents/{+path}","compare_url":"https://api.github.com/repos/allenRoyston/ngCroppie/compare/{base}...{head}","merges_url":"https://api.github.com/repos/allenRoyston/ngCroppie/merges","archive_url":"https://api.github.com/repos/allenRoyston/ngCroppie/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/allenRoyston/ngCroppie/downloads","issues_url":"https://api.github.com/repos/allenRoyston/ngCroppie/issues{/number}","pulls_url":"https://api.github.com/repos/allenRoyston/ngCroppie/pulls{/number}","milestones_url":"https://api.github.com/repos/allenRoyston/ngCroppie/milestones{/number}","notifications_url":"https://api.github.com/repos/allenRoyston/ngCroppie/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/allenRoyston/ngCroppie/labels{/name}","releases_url":"https://api.github.com/repos/allenRoyston/ngCroppie/releases{/id}","deployments_url":"https://api.github.com/repos/allenRoyston/ngCroppie/deployments","created_at":"2015-12-23T23:54:20Z","updated_at":"2016-10-20T19:01:03Z","pushed_at":"2016-09-15T18:25:24Z","git_url":"git://github.com/allenRoyston/ngCroppie.git","ssh_url":"git@github.com:allenRoyston/ngCroppie.git","clone_url":"https://github.com/allenRoyston/ngCroppie.git","svn_url":"https://github.com/allenRoyston/ngCroppie","homepage":"https://allenroyston.herokuapp.com/access/acr-croppie/","size":31,"stargazers_count":23,"watchers_count":23,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":17,"mirror_url":null,"open_issues_count":16,"forks":17,"open_issues":16,"watchers":23,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/allenRoyston/ngCroppie/pulls/24"},"html":{"href":"https://github.com/allenRoyston/ngCroppie/pull/24"},"issue":{"href":"https://api.github.com/repos/allenRoyston/ngCroppie/issues/24"},"comments":{"href":"https://api.github.com/repos/allenRoyston/ngCroppie/issues/24/comments"},"review_comments":{"href":"https://api.github.com/repos/allenRoyston/ngCroppie/pulls/24/comments"},"review_comment":{"href":"https://api.github.com/repos/allenRoyston/ngCroppie/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/allenRoyston/ngCroppie/pulls/24/commits"},"statuses":{"href":"https://api.github.com/repos/allenRoyston/ngCroppie/statuses/be57867324932156740cacde1cd3cdfe22ec7d0f"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":1,"additions":44,"deletions":6,"changed_files":1}}
{"actor":{"display_login":"stasinua"}}