{"action":"created","comment":{"url":"https://api.github.com/repos/openlayers/ol3/pulls/comments/25672833","id":25672833,"diff_hunk":"@@ -156,7 +211,9 @@ ol.interaction.Select.handleEvent = function(mapBrowserEvent) {\n         features.item(0) == selected[0]) {\n       // No change\n     } else {\n+      change = true;\n       if (features.getLength() !== 0) {\n+        Array.prototype.push.apply(deselected, features.getArray());","path":"src/ol/interaction/selectinteraction.js","position":82,"original_position":82,"commit_id":"2a71ce766944e605769ad2aa82da16313cc492fc","original_commit_id":"2a71ce766944e605769ad2aa82da16313cc492fc","user":{"login":"elemoine","id":76594,"avatar_url":"https://avatars.githubusercontent.com/u/76594?v=3","gravatar_id":"","url":"https://api.github.com/users/elemoine","html_url":"https://github.com/elemoine","followers_url":"https://api.github.com/users/elemoine/followers","following_url":"https://api.github.com/users/elemoine/following{/other_user}","gists_url":"https://api.github.com/users/elemoine/gists{/gist_id}","starred_url":"https://api.github.com/users/elemoine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elemoine/subscriptions","organizations_url":"https://api.github.com/users/elemoine/orgs","repos_url":"https://api.github.com/users/elemoine/repos","events_url":"https://api.github.com/users/elemoine/events{/privacy}","received_events_url":"https://api.github.com/users/elemoine/received_events","type":"User","site_admin":false},"body":"Good point @ahocevar. I'd never thought about that.","created_at":"2015-03-03T09:28:32Z","updated_at":"2015-03-03T09:28:32Z","html_url":"https://github.com/openlayers/ol3/pull/3018#discussion_r25672833","pull_request_url":"https://api.github.com/repos/openlayers/ol3/pulls/3018","_links":{"self":{"href":"https://api.github.com/repos/openlayers/ol3/pulls/comments/25672833"},"html":{"href":"https://github.com/openlayers/ol3/pull/3018#discussion_r25672833"},"pull_request":{"href":"https://api.github.com/repos/openlayers/ol3/pulls/3018"}}},"pull_request":{"url":"https://api.github.com/repos/openlayers/ol3/pulls/3018","id":25639141,"html_url":"https://github.com/openlayers/ol3/pull/3018","diff_url":"https://github.com/openlayers/ol3/pull/3018.diff","patch_url":"https://github.com/openlayers/ol3/pull/3018.patch","issue_url":"https://api.github.com/repos/openlayers/ol3/issues/3018","number":3018,"state":"open","locked":false,"title":"Add SelectEvent to interaction","user":{"login":"bjornharrtell","id":141030,"avatar_url":"https://avatars.githubusercontent.com/u/141030?v=3","gravatar_id":"","url":"https://api.github.com/users/bjornharrtell","html_url":"https://github.com/bjornharrtell","followers_url":"https://api.github.com/users/bjornharrtell/followers","following_url":"https://api.github.com/users/bjornharrtell/following{/other_user}","gists_url":"https://api.github.com/users/bjornharrtell/gists{/gist_id}","starred_url":"https://api.github.com/users/bjornharrtell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bjornharrtell/subscriptions","organizations_url":"https://api.github.com/users/bjornharrtell/orgs","repos_url":"https://api.github.com/users/bjornharrtell/repos","events_url":"https://api.github.com/users/bjornharrtell/events{/privacy}","received_events_url":"https://api.github.com/users/bjornharrtell/received_events","type":"User","site_admin":false},"body":"This PR implements a coarse grained event directly on the Select interaction. The motive for this new event is that selection changes currently can only be observed on the collection of selected features and when selecting or deselecting many features many add/remove events will be dispatched which might be difficult to process as a unit in application code. This new event will only trigger once per interaction.","created_at":"2014-12-07T23:09:51Z","updated_at":"2015-03-03T09:28:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":"56f2e21a3d90c8c175b1be43adeb2801e697980f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/openlayers/ol3/pulls/3018/commits","review_comments_url":"https://api.github.com/repos/openlayers/ol3/pulls/3018/comments","review_comment_url":"https://api.github.com/repos/openlayers/ol3/pulls/comments{/number}","comments_url":"https://api.github.com/repos/openlayers/ol3/issues/3018/comments","statuses_url":"https://api.github.com/repos/openlayers/ol3/statuses/2a71ce766944e605769ad2aa82da16313cc492fc","head":{"label":"bjornharrtell:selectevent","ref":"selectevent","sha":"2a71ce766944e605769ad2aa82da16313cc492fc","user":{"login":"bjornharrtell","id":141030,"avatar_url":"https://avatars.githubusercontent.com/u/141030?v=3","gravatar_id":"","url":"https://api.github.com/users/bjornharrtell","html_url":"https://github.com/bjornharrtell","followers_url":"https://api.github.com/users/bjornharrtell/followers","following_url":"https://api.github.com/users/bjornharrtell/following{/other_user}","gists_url":"https://api.github.com/users/bjornharrtell/gists{/gist_id}","starred_url":"https://api.github.com/users/bjornharrtell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bjornharrtell/subscriptions","organizations_url":"https://api.github.com/users/bjornharrtell/orgs","repos_url":"https://api.github.com/users/bjornharrtell/repos","events_url":"https://api.github.com/users/bjornharrtell/events{/privacy}","received_events_url":"https://api.github.com/users/bjornharrtell/received_events","type":"User","site_admin":false},"repo":{"id":12669110,"name":"ol3","full_name":"bjornharrtell/ol3","owner":{"login":"bjornharrtell","id":141030,"avatar_url":"https://avatars.githubusercontent.com/u/141030?v=3","gravatar_id":"","url":"https://api.github.com/users/bjornharrtell","html_url":"https://github.com/bjornharrtell","followers_url":"https://api.github.com/users/bjornharrtell/followers","following_url":"https://api.github.com/users/bjornharrtell/following{/other_user}","gists_url":"https://api.github.com/users/bjornharrtell/gists{/gist_id}","starred_url":"https://api.github.com/users/bjornharrtell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bjornharrtell/subscriptions","organizations_url":"https://api.github.com/users/bjornharrtell/orgs","repos_url":"https://api.github.com/users/bjornharrtell/repos","events_url":"https://api.github.com/users/bjornharrtell/events{/privacy}","received_events_url":"https://api.github.com/users/bjornharrtell/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bjornharrtell/ol3","description":"OpenLayers 3","fork":true,"url":"https://api.github.com/repos/bjornharrtell/ol3","forks_url":"https://api.github.com/repos/bjornharrtell/ol3/forks","keys_url":"https://api.github.com/repos/bjornharrtell/ol3/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bjornharrtell/ol3/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bjornharrtell/ol3/teams","hooks_url":"https://api.github.com/repos/bjornharrtell/ol3/hooks","issue_events_url":"https://api.github.com/repos/bjornharrtell/ol3/issues/events{/number}","events_url":"https://api.github.com/repos/bjornharrtell/ol3/events","assignees_url":"https://api.github.com/repos/bjornharrtell/ol3/assignees{/user}","branches_url":"https://api.github.com/repos/bjornharrtell/ol3/branches{/branch}","tags_url":"https://api.github.com/repos/bjornharrtell/ol3/tags","blobs_url":"https://api.github.com/repos/bjornharrtell/ol3/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bjornharrtell/ol3/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bjornharrtell/ol3/git/refs{/sha}","trees_url":"https://api.github.com/repos/bjornharrtell/ol3/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bjornharrtell/ol3/statuses/{sha}","languages_url":"https://api.github.com/repos/bjornharrtell/ol3/languages","stargazers_url":"https://api.github.com/repos/bjornharrtell/ol3/stargazers","contributors_url":"https://api.github.com/repos/bjornharrtell/ol3/contributors","subscribers_url":"https://api.github.com/repos/bjornharrtell/ol3/subscribers","subscription_url":"https://api.github.com/repos/bjornharrtell/ol3/subscription","commits_url":"https://api.github.com/repos/bjornharrtell/ol3/commits{/sha}","git_commits_url":"https://api.github.com/repos/bjornharrtell/ol3/git/commits{/sha}","comments_url":"https://api.github.com/repos/bjornharrtell/ol3/comments{/number}","issue_comment_url":"https://api.github.com/repos/bjornharrtell/ol3/issues/comments{/number}","contents_url":"https://api.github.com/repos/bjornharrtell/ol3/contents/{+path}","compare_url":"https://api.github.com/repos/bjornharrtell/ol3/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bjornharrtell/ol3/merges","archive_url":"https://api.github.com/repos/bjornharrtell/ol3/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bjornharrtell/ol3/downloads","issues_url":"https://api.github.com/repos/bjornharrtell/ol3/issues{/number}","pulls_url":"https://api.github.com/repos/bjornharrtell/ol3/pulls{/number}","milestones_url":"https://api.github.com/repos/bjornharrtell/ol3/milestones{/number}","notifications_url":"https://api.github.com/repos/bjornharrtell/ol3/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bjornharrtell/ol3/labels{/name}","releases_url":"https://api.github.com/repos/bjornharrtell/ol3/releases{/id}","created_at":"2013-09-07T18:03:16Z","updated_at":"2015-02-03T13:08:44Z","pushed_at":"2015-03-02T18:53:06Z","git_url":"git://github.com/bjornharrtell/ol3.git","ssh_url":"git@github.com:bjornharrtell/ol3.git","clone_url":"https://github.com/bjornharrtell/ol3.git","svn_url":"https://github.com/bjornharrtell/ol3","homepage":"http://ol3js.org/","size":27177,"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":"openlayers:master","ref":"master","sha":"4c1be5967dbe430c227159b08eb0ba55bf3e988b","user":{"login":"openlayers","id":240579,"avatar_url":"https://avatars.githubusercontent.com/u/240579?v=3","gravatar_id":"","url":"https://api.github.com/users/openlayers","html_url":"https://github.com/openlayers","followers_url":"https://api.github.com/users/openlayers/followers","following_url":"https://api.github.com/users/openlayers/following{/other_user}","gists_url":"https://api.github.com/users/openlayers/gists{/gist_id}","starred_url":"https://api.github.com/users/openlayers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openlayers/subscriptions","organizations_url":"https://api.github.com/users/openlayers/orgs","repos_url":"https://api.github.com/users/openlayers/repos","events_url":"https://api.github.com/users/openlayers/events{/privacy}","received_events_url":"https://api.github.com/users/openlayers/received_events","type":"Organization","site_admin":false},"repo":{"id":4723248,"name":"ol3","full_name":"openlayers/ol3","owner":{"login":"openlayers","id":240579,"avatar_url":"https://avatars.githubusercontent.com/u/240579?v=3","gravatar_id":"","url":"https://api.github.com/users/openlayers","html_url":"https://github.com/openlayers","followers_url":"https://api.github.com/users/openlayers/followers","following_url":"https://api.github.com/users/openlayers/following{/other_user}","gists_url":"https://api.github.com/users/openlayers/gists{/gist_id}","starred_url":"https://api.github.com/users/openlayers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openlayers/subscriptions","organizations_url":"https://api.github.com/users/openlayers/orgs","repos_url":"https://api.github.com/users/openlayers/repos","events_url":"https://api.github.com/users/openlayers/events{/privacy}","received_events_url":"https://api.github.com/users/openlayers/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/openlayers/ol3","description":"OpenLayers 3","fork":false,"url":"https://api.github.com/repos/openlayers/ol3","forks_url":"https://api.github.com/repos/openlayers/ol3/forks","keys_url":"https://api.github.com/repos/openlayers/ol3/keys{/key_id}","collaborators_url":"https://api.github.com/repos/openlayers/ol3/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/openlayers/ol3/teams","hooks_url":"https://api.github.com/repos/openlayers/ol3/hooks","issue_events_url":"https://api.github.com/repos/openlayers/ol3/issues/events{/number}","events_url":"https://api.github.com/repos/openlayers/ol3/events","assignees_url":"https://api.github.com/repos/openlayers/ol3/assignees{/user}","branches_url":"https://api.github.com/repos/openlayers/ol3/branches{/branch}","tags_url":"https://api.github.com/repos/openlayers/ol3/tags","blobs_url":"https://api.github.com/repos/openlayers/ol3/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/openlayers/ol3/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/openlayers/ol3/git/refs{/sha}","trees_url":"https://api.github.com/repos/openlayers/ol3/git/trees{/sha}","statuses_url":"https://api.github.com/repos/openlayers/ol3/statuses/{sha}","languages_url":"https://api.github.com/repos/openlayers/ol3/languages","stargazers_url":"https://api.github.com/repos/openlayers/ol3/stargazers","contributors_url":"https://api.github.com/repos/openlayers/ol3/contributors","subscribers_url":"https://api.github.com/repos/openlayers/ol3/subscribers","subscription_url":"https://api.github.com/repos/openlayers/ol3/subscription","commits_url":"https://api.github.com/repos/openlayers/ol3/commits{/sha}","git_commits_url":"https://api.github.com/repos/openlayers/ol3/git/commits{/sha}","comments_url":"https://api.github.com/repos/openlayers/ol3/comments{/number}","issue_comment_url":"https://api.github.com/repos/openlayers/ol3/issues/comments{/number}","contents_url":"https://api.github.com/repos/openlayers/ol3/contents/{+path}","compare_url":"https://api.github.com/repos/openlayers/ol3/compare/{base}...{head}","merges_url":"https://api.github.com/repos/openlayers/ol3/merges","archive_url":"https://api.github.com/repos/openlayers/ol3/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/openlayers/ol3/downloads","issues_url":"https://api.github.com/repos/openlayers/ol3/issues{/number}","pulls_url":"https://api.github.com/repos/openlayers/ol3/pulls{/number}","milestones_url":"https://api.github.com/repos/openlayers/ol3/milestones{/number}","notifications_url":"https://api.github.com/repos/openlayers/ol3/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/openlayers/ol3/labels{/name}","releases_url":"https://api.github.com/repos/openlayers/ol3/releases{/id}","created_at":"2012-06-20T06:53:59Z","updated_at":"2015-03-02T20:12:15Z","pushed_at":"2015-03-02T20:12:15Z","git_url":"git://github.com/openlayers/ol3.git","ssh_url":"git@github.com:openlayers/ol3.git","clone_url":"https://github.com/openlayers/ol3.git","svn_url":"https://github.com/openlayers/ol3","homepage":"http://openlayers.org","size":69563,"stargazers_count":988,"watchers_count":988,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":588,"mirror_url":null,"open_issues_count":283,"forks":588,"open_issues":283,"watchers":988,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/openlayers/ol3/pulls/3018"},"html":{"href":"https://github.com/openlayers/ol3/pull/3018"},"issue":{"href":"https://api.github.com/repos/openlayers/ol3/issues/3018"},"comments":{"href":"https://api.github.com/repos/openlayers/ol3/issues/3018/comments"},"review_comments":{"href":"https://api.github.com/repos/openlayers/ol3/pulls/3018/comments"},"review_comment":{"href":"https://api.github.com/repos/openlayers/ol3/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/openlayers/ol3/pulls/3018/commits"},"statuses":{"href":"https://api.github.com/repos/openlayers/ol3/statuses/2a71ce766944e605769ad2aa82da16313cc492fc"}}}}