{"action":"created","comment":{"url":"https://api.github.com/repos/angular/material/pulls/comments/59819747","id":59819747,"diff_hunk":"@@ -501,6 +501,12 @@ function VirtualRepeatController($scope, $element, $attrs, $browser, $document,\n   this.blocks = {};\n   /** @type {Array<!VirtualRepeatController.Block>} A pool of presently unused blocks. */\n   this.pooledBlocks = [];\n+\n+  $scope.$on('$destroy', angular.bind(this, function cleanup() {","path":"src/components/virtualRepeat/virtual-repeater.js","position":5,"original_position":5,"commit_id":"335272d00327ac78147485d62e68f0b5bcddfaa0","original_commit_id":"335272d00327ac78147485d62e68f0b5bcddfaa0","user":{"login":"ThomasBurleson","id":210413,"avatar_url":"https://avatars.githubusercontent.com/u/210413?v=3","gravatar_id":"","url":"https://api.github.com/users/ThomasBurleson","html_url":"https://github.com/ThomasBurleson","followers_url":"https://api.github.com/users/ThomasBurleson/followers","following_url":"https://api.github.com/users/ThomasBurleson/following{/other_user}","gists_url":"https://api.github.com/users/ThomasBurleson/gists{/gist_id}","starred_url":"https://api.github.com/users/ThomasBurleson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ThomasBurleson/subscriptions","organizations_url":"https://api.github.com/users/ThomasBurleson/orgs","repos_url":"https://api.github.com/users/ThomasBurleson/repos","events_url":"https://api.github.com/users/ThomasBurleson/events{/privacy}","received_events_url":"https://api.github.com/users/ThomasBurleson/received_events","type":"User","site_admin":false},"body":"Can you provide a unit test to validate that this works?","created_at":"2016-04-15T02:23:19Z","updated_at":"2016-04-15T02:23:19Z","html_url":"https://github.com/angular/material/pull/8056#discussion_r59819747","pull_request_url":"https://api.github.com/repos/angular/material/pulls/8056","_links":{"self":{"href":"https://api.github.com/repos/angular/material/pulls/comments/59819747"},"html":{"href":"https://github.com/angular/material/pull/8056#discussion_r59819747"},"pull_request":{"href":"https://api.github.com/repos/angular/material/pulls/8056"}}},"pull_request":{"url":"https://api.github.com/repos/angular/material/pulls/8056","id":66581097,"html_url":"https://github.com/angular/material/pull/8056","diff_url":"https://github.com/angular/material/pull/8056.diff","patch_url":"https://github.com/angular/material/pull/8056.patch","issue_url":"https://api.github.com/repos/angular/material/issues/8056","number":8056,"state":"open","locked":false,"title":"fix(virtualRepeat): Memory leak","user":{"login":"neko1235","id":13606126,"avatar_url":"https://avatars.githubusercontent.com/u/13606126?v=3","gravatar_id":"","url":"https://api.github.com/users/neko1235","html_url":"https://github.com/neko1235","followers_url":"https://api.github.com/users/neko1235/followers","following_url":"https://api.github.com/users/neko1235/following{/other_user}","gists_url":"https://api.github.com/users/neko1235/gists{/gist_id}","starred_url":"https://api.github.com/users/neko1235/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neko1235/subscriptions","organizations_url":"https://api.github.com/users/neko1235/orgs","repos_url":"https://api.github.com/users/neko1235/repos","events_url":"https://api.github.com/users/neko1235/events{/privacy}","received_events_url":"https://api.github.com/users/neko1235/received_events","type":"User","site_admin":false},"body":"Delete all created elements when the scope is destroyed.\r\n\r\nCloses #8055","created_at":"2016-04-15T02:10:20Z","updated_at":"2016-04-15T02:23:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":"62036c24223b5e3e967acd8df7d0e5ba2c906538","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/angular/material/pulls/8056/commits","review_comments_url":"https://api.github.com/repos/angular/material/pulls/8056/comments","review_comment_url":"https://api.github.com/repos/angular/material/pulls/comments{/number}","comments_url":"https://api.github.com/repos/angular/material/issues/8056/comments","statuses_url":"https://api.github.com/repos/angular/material/statuses/335272d00327ac78147485d62e68f0b5bcddfaa0","head":{"label":"neko1235:patch-1","ref":"patch-1","sha":"335272d00327ac78147485d62e68f0b5bcddfaa0","user":{"login":"neko1235","id":13606126,"avatar_url":"https://avatars.githubusercontent.com/u/13606126?v=3","gravatar_id":"","url":"https://api.github.com/users/neko1235","html_url":"https://github.com/neko1235","followers_url":"https://api.github.com/users/neko1235/followers","following_url":"https://api.github.com/users/neko1235/following{/other_user}","gists_url":"https://api.github.com/users/neko1235/gists{/gist_id}","starred_url":"https://api.github.com/users/neko1235/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neko1235/subscriptions","organizations_url":"https://api.github.com/users/neko1235/orgs","repos_url":"https://api.github.com/users/neko1235/repos","events_url":"https://api.github.com/users/neko1235/events{/privacy}","received_events_url":"https://api.github.com/users/neko1235/received_events","type":"User","site_admin":false},"repo":{"id":56282641,"name":"material","full_name":"neko1235/material","owner":{"login":"neko1235","id":13606126,"avatar_url":"https://avatars.githubusercontent.com/u/13606126?v=3","gravatar_id":"","url":"https://api.github.com/users/neko1235","html_url":"https://github.com/neko1235","followers_url":"https://api.github.com/users/neko1235/followers","following_url":"https://api.github.com/users/neko1235/following{/other_user}","gists_url":"https://api.github.com/users/neko1235/gists{/gist_id}","starred_url":"https://api.github.com/users/neko1235/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neko1235/subscriptions","organizations_url":"https://api.github.com/users/neko1235/orgs","repos_url":"https://api.github.com/users/neko1235/repos","events_url":"https://api.github.com/users/neko1235/events{/privacy}","received_events_url":"https://api.github.com/users/neko1235/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/neko1235/material","description":"Material design for Angular","fork":true,"url":"https://api.github.com/repos/neko1235/material","forks_url":"https://api.github.com/repos/neko1235/material/forks","keys_url":"https://api.github.com/repos/neko1235/material/keys{/key_id}","collaborators_url":"https://api.github.com/repos/neko1235/material/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/neko1235/material/teams","hooks_url":"https://api.github.com/repos/neko1235/material/hooks","issue_events_url":"https://api.github.com/repos/neko1235/material/issues/events{/number}","events_url":"https://api.github.com/repos/neko1235/material/events","assignees_url":"https://api.github.com/repos/neko1235/material/assignees{/user}","branches_url":"https://api.github.com/repos/neko1235/material/branches{/branch}","tags_url":"https://api.github.com/repos/neko1235/material/tags","blobs_url":"https://api.github.com/repos/neko1235/material/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/neko1235/material/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/neko1235/material/git/refs{/sha}","trees_url":"https://api.github.com/repos/neko1235/material/git/trees{/sha}","statuses_url":"https://api.github.com/repos/neko1235/material/statuses/{sha}","languages_url":"https://api.github.com/repos/neko1235/material/languages","stargazers_url":"https://api.github.com/repos/neko1235/material/stargazers","contributors_url":"https://api.github.com/repos/neko1235/material/contributors","subscribers_url":"https://api.github.com/repos/neko1235/material/subscribers","subscription_url":"https://api.github.com/repos/neko1235/material/subscription","commits_url":"https://api.github.com/repos/neko1235/material/commits{/sha}","git_commits_url":"https://api.github.com/repos/neko1235/material/git/commits{/sha}","comments_url":"https://api.github.com/repos/neko1235/material/comments{/number}","issue_comment_url":"https://api.github.com/repos/neko1235/material/issues/comments{/number}","contents_url":"https://api.github.com/repos/neko1235/material/contents/{+path}","compare_url":"https://api.github.com/repos/neko1235/material/compare/{base}...{head}","merges_url":"https://api.github.com/repos/neko1235/material/merges","archive_url":"https://api.github.com/repos/neko1235/material/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/neko1235/material/downloads","issues_url":"https://api.github.com/repos/neko1235/material/issues{/number}","pulls_url":"https://api.github.com/repos/neko1235/material/pulls{/number}","milestones_url":"https://api.github.com/repos/neko1235/material/milestones{/number}","notifications_url":"https://api.github.com/repos/neko1235/material/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/neko1235/material/labels{/name}","releases_url":"https://api.github.com/repos/neko1235/material/releases{/id}","deployments_url":"https://api.github.com/repos/neko1235/material/deployments","created_at":"2016-04-15T01:52:48Z","updated_at":"2016-04-15T01:52:51Z","pushed_at":"2016-04-15T02:03:33Z","git_url":"git://github.com/neko1235/material.git","ssh_url":"git@github.com:neko1235/material.git","clone_url":"https://github.com/neko1235/material.git","svn_url":"https://github.com/neko1235/material","homepage":"https://material.angularjs.org/","size":42180,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":"angular:master","ref":"master","sha":"fbf17dbf6af63cdccc4144b24feecd34bda26fd9","user":{"login":"angular","id":139426,"avatar_url":"https://avatars.githubusercontent.com/u/139426?v=3","gravatar_id":"","url":"https://api.github.com/users/angular","html_url":"https://github.com/angular","followers_url":"https://api.github.com/users/angular/followers","following_url":"https://api.github.com/users/angular/following{/other_user}","gists_url":"https://api.github.com/users/angular/gists{/gist_id}","starred_url":"https://api.github.com/users/angular/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/angular/subscriptions","organizations_url":"https://api.github.com/users/angular/orgs","repos_url":"https://api.github.com/users/angular/repos","events_url":"https://api.github.com/users/angular/events{/privacy}","received_events_url":"https://api.github.com/users/angular/received_events","type":"Organization","site_admin":false},"repo":{"id":21399598,"name":"material","full_name":"angular/material","owner":{"login":"angular","id":139426,"avatar_url":"https://avatars.githubusercontent.com/u/139426?v=3","gravatar_id":"","url":"https://api.github.com/users/angular","html_url":"https://github.com/angular","followers_url":"https://api.github.com/users/angular/followers","following_url":"https://api.github.com/users/angular/following{/other_user}","gists_url":"https://api.github.com/users/angular/gists{/gist_id}","starred_url":"https://api.github.com/users/angular/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/angular/subscriptions","organizations_url":"https://api.github.com/users/angular/orgs","repos_url":"https://api.github.com/users/angular/repos","events_url":"https://api.github.com/users/angular/events{/privacy}","received_events_url":"https://api.github.com/users/angular/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/angular/material","description":"Material design for Angular","fork":false,"url":"https://api.github.com/repos/angular/material","forks_url":"https://api.github.com/repos/angular/material/forks","keys_url":"https://api.github.com/repos/angular/material/keys{/key_id}","collaborators_url":"https://api.github.com/repos/angular/material/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/angular/material/teams","hooks_url":"https://api.github.com/repos/angular/material/hooks","issue_events_url":"https://api.github.com/repos/angular/material/issues/events{/number}","events_url":"https://api.github.com/repos/angular/material/events","assignees_url":"https://api.github.com/repos/angular/material/assignees{/user}","branches_url":"https://api.github.com/repos/angular/material/branches{/branch}","tags_url":"https://api.github.com/repos/angular/material/tags","blobs_url":"https://api.github.com/repos/angular/material/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/angular/material/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/angular/material/git/refs{/sha}","trees_url":"https://api.github.com/repos/angular/material/git/trees{/sha}","statuses_url":"https://api.github.com/repos/angular/material/statuses/{sha}","languages_url":"https://api.github.com/repos/angular/material/languages","stargazers_url":"https://api.github.com/repos/angular/material/stargazers","contributors_url":"https://api.github.com/repos/angular/material/contributors","subscribers_url":"https://api.github.com/repos/angular/material/subscribers","subscription_url":"https://api.github.com/repos/angular/material/subscription","commits_url":"https://api.github.com/repos/angular/material/commits{/sha}","git_commits_url":"https://api.github.com/repos/angular/material/git/commits{/sha}","comments_url":"https://api.github.com/repos/angular/material/comments{/number}","issue_comment_url":"https://api.github.com/repos/angular/material/issues/comments{/number}","contents_url":"https://api.github.com/repos/angular/material/contents/{+path}","compare_url":"https://api.github.com/repos/angular/material/compare/{base}...{head}","merges_url":"https://api.github.com/repos/angular/material/merges","archive_url":"https://api.github.com/repos/angular/material/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/angular/material/downloads","issues_url":"https://api.github.com/repos/angular/material/issues{/number}","pulls_url":"https://api.github.com/repos/angular/material/pulls{/number}","milestones_url":"https://api.github.com/repos/angular/material/milestones{/number}","notifications_url":"https://api.github.com/repos/angular/material/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/angular/material/labels{/name}","releases_url":"https://api.github.com/repos/angular/material/releases{/id}","deployments_url":"https://api.github.com/repos/angular/material/deployments","created_at":"2014-07-01T19:20:06Z","updated_at":"2016-04-15T02:06:39Z","pushed_at":"2016-04-15T02:10:22Z","git_url":"git://github.com/angular/material.git","ssh_url":"git@github.com:angular/material.git","clone_url":"https://github.com/angular/material.git","svn_url":"https://github.com/angular/material","homepage":"https://material.angularjs.org/","size":79648,"stargazers_count":13249,"watchers_count":13249,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":2646,"mirror_url":null,"open_issues_count":1731,"forks":2646,"open_issues":1731,"watchers":13249,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/angular/material/pulls/8056"},"html":{"href":"https://github.com/angular/material/pull/8056"},"issue":{"href":"https://api.github.com/repos/angular/material/issues/8056"},"comments":{"href":"https://api.github.com/repos/angular/material/issues/8056/comments"},"review_comments":{"href":"https://api.github.com/repos/angular/material/pulls/8056/comments"},"review_comment":{"href":"https://api.github.com/repos/angular/material/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/angular/material/pulls/8056/commits"},"statuses":{"href":"https://api.github.com/repos/angular/material/statuses/335272d00327ac78147485d62e68f0b5bcddfaa0"}}}}