{"action":"created","comment":{"url":"https://api.github.com/repos/angular/material/pulls/comments/50440797","id":50440797,"diff_hunk":"@@ -330,7 +330,7 @@\n     if (this.$attrs['ngDisabled']) {\n       // The expression is to be evaluated against the directive element's scope and not\n       // the directive's isolate scope.\n-      var scope = this.$mdUtil.validateScope(this.$element) ? this.$element.scope() : null;\n+      var scope = this.$scope.$parent;","path":"src/components/datepicker/datePicker.js","position":5,"original_position":5,"commit_id":"ddecc122218c0e256c5bfa7dabb544e1c4e90900","original_commit_id":"ddecc122218c0e256c5bfa7dabb544e1c4e90900","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":"`$mdUtil.validateScope` is only used by `datePicker.js` and `util.js` \r\nAnd in util.js, it is only used to scan for focusable.\r\n\r\nAnyway to fix the util.js or **remove** that fragile utility?\r\n\r\n","created_at":"2016-01-21T18:24:56Z","updated_at":"2016-01-21T18:24:56Z","html_url":"https://github.com/angular/material/pull/6770#discussion_r50440797","pull_request_url":"https://api.github.com/repos/angular/material/pulls/6770","_links":{"self":{"href":"https://api.github.com/repos/angular/material/pulls/comments/50440797"},"html":{"href":"https://github.com/angular/material/pull/6770#discussion_r50440797"},"pull_request":{"href":"https://api.github.com/repos/angular/material/pulls/6770"}}},"pull_request":{"url":"https://api.github.com/repos/angular/material/pulls/6770","id":56540751,"html_url":"https://github.com/angular/material/pull/6770","diff_url":"https://github.com/angular/material/pull/6770.diff","patch_url":"https://github.com/angular/material/pull/6770.patch","issue_url":"https://api.github.com/repos/angular/material/issues/6770","number":6770,"state":"open","locked":false,"title":"fix(util/datepicker): Remove usages of scope().","user":{"login":"topherfangio","id":54370,"avatar_url":"https://avatars.githubusercontent.com/u/54370?v=3","gravatar_id":"","url":"https://api.github.com/users/topherfangio","html_url":"https://github.com/topherfangio","followers_url":"https://api.github.com/users/topherfangio/followers","following_url":"https://api.github.com/users/topherfangio/following{/other_user}","gists_url":"https://api.github.com/users/topherfangio/gists{/gist_id}","starred_url":"https://api.github.com/users/topherfangio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/topherfangio/subscriptions","organizations_url":"https://api.github.com/users/topherfangio/orgs","repos_url":"https://api.github.com/users/topherfangio/repos","events_url":"https://api.github.com/users/topherfangio/events{/privacy}","received_events_url":"https://api.github.com/users/topherfangio/received_events","type":"User","site_admin":false},"body":"A few places use `element.scope()` to retrieve the proper scope,\r\nhowever, this is only available when Angular's debugging option\r\nis enabled and thus fails in production.\r\n\r\nReplace usages of `.scope()` in `util.js` and `datepicker.js`\r\nwith appropriate alternatives.\r\n\r\nFixes #6474.","created_at":"2016-01-19T23:12:32Z","updated_at":"2016-01-21T18:24:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ed9d3af7ed4b8f9785f77e7d00b4b0b9bb0dd29c","assignee":{"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},"milestone":{"url":"https://api.github.com/repos/angular/material/milestones/32","html_url":"https://github.com/angular/material/milestones/1.0.3","labels_url":"https://api.github.com/repos/angular/material/milestones/32/labels","id":1485402,"number":32,"title":"1.0.3","description":"","creator":{"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},"open_issues":16,"closed_issues":25,"state":"open","created_at":"2016-01-05T17:39:40Z","updated_at":"2016-01-21T18:14:31Z","due_on":"2016-01-21T08:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/angular/material/pulls/6770/commits","review_comments_url":"https://api.github.com/repos/angular/material/pulls/6770/comments","review_comment_url":"https://api.github.com/repos/angular/material/pulls/comments{/number}","comments_url":"https://api.github.com/repos/angular/material/issues/6770/comments","statuses_url":"https://api.github.com/repos/angular/material/statuses/ddecc122218c0e256c5bfa7dabb544e1c4e90900","head":{"label":"profoundry-us:fix-scope-usages-6474","ref":"fix-scope-usages-6474","sha":"ddecc122218c0e256c5bfa7dabb544e1c4e90900","user":{"login":"profoundry-us","id":331029,"avatar_url":"https://avatars.githubusercontent.com/u/331029?v=3","gravatar_id":"","url":"https://api.github.com/users/profoundry-us","html_url":"https://github.com/profoundry-us","followers_url":"https://api.github.com/users/profoundry-us/followers","following_url":"https://api.github.com/users/profoundry-us/following{/other_user}","gists_url":"https://api.github.com/users/profoundry-us/gists{/gist_id}","starred_url":"https://api.github.com/users/profoundry-us/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/profoundry-us/subscriptions","organizations_url":"https://api.github.com/users/profoundry-us/orgs","repos_url":"https://api.github.com/users/profoundry-us/repos","events_url":"https://api.github.com/users/profoundry-us/events{/privacy}","received_events_url":"https://api.github.com/users/profoundry-us/received_events","type":"Organization","site_admin":false},"repo":{"id":34092368,"name":"material","full_name":"profoundry-us/material","owner":{"login":"profoundry-us","id":331029,"avatar_url":"https://avatars.githubusercontent.com/u/331029?v=3","gravatar_id":"","url":"https://api.github.com/users/profoundry-us","html_url":"https://github.com/profoundry-us","followers_url":"https://api.github.com/users/profoundry-us/followers","following_url":"https://api.github.com/users/profoundry-us/following{/other_user}","gists_url":"https://api.github.com/users/profoundry-us/gists{/gist_id}","starred_url":"https://api.github.com/users/profoundry-us/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/profoundry-us/subscriptions","organizations_url":"https://api.github.com/users/profoundry-us/orgs","repos_url":"https://api.github.com/users/profoundry-us/repos","events_url":"https://api.github.com/users/profoundry-us/events{/privacy}","received_events_url":"https://api.github.com/users/profoundry-us/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/profoundry-us/material","description":"Material design for Angular","fork":true,"url":"https://api.github.com/repos/profoundry-us/material","forks_url":"https://api.github.com/repos/profoundry-us/material/forks","keys_url":"https://api.github.com/repos/profoundry-us/material/keys{/key_id}","collaborators_url":"https://api.github.com/repos/profoundry-us/material/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/profoundry-us/material/teams","hooks_url":"https://api.github.com/repos/profoundry-us/material/hooks","issue_events_url":"https://api.github.com/repos/profoundry-us/material/issues/events{/number}","events_url":"https://api.github.com/repos/profoundry-us/material/events","assignees_url":"https://api.github.com/repos/profoundry-us/material/assignees{/user}","branches_url":"https://api.github.com/repos/profoundry-us/material/branches{/branch}","tags_url":"https://api.github.com/repos/profoundry-us/material/tags","blobs_url":"https://api.github.com/repos/profoundry-us/material/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/profoundry-us/material/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/profoundry-us/material/git/refs{/sha}","trees_url":"https://api.github.com/repos/profoundry-us/material/git/trees{/sha}","statuses_url":"https://api.github.com/repos/profoundry-us/material/statuses/{sha}","languages_url":"https://api.github.com/repos/profoundry-us/material/languages","stargazers_url":"https://api.github.com/repos/profoundry-us/material/stargazers","contributors_url":"https://api.github.com/repos/profoundry-us/material/contributors","subscribers_url":"https://api.github.com/repos/profoundry-us/material/subscribers","subscription_url":"https://api.github.com/repos/profoundry-us/material/subscription","commits_url":"https://api.github.com/repos/profoundry-us/material/commits{/sha}","git_commits_url":"https://api.github.com/repos/profoundry-us/material/git/commits{/sha}","comments_url":"https://api.github.com/repos/profoundry-us/material/comments{/number}","issue_comment_url":"https://api.github.com/repos/profoundry-us/material/issues/comments{/number}","contents_url":"https://api.github.com/repos/profoundry-us/material/contents/{+path}","compare_url":"https://api.github.com/repos/profoundry-us/material/compare/{base}...{head}","merges_url":"https://api.github.com/repos/profoundry-us/material/merges","archive_url":"https://api.github.com/repos/profoundry-us/material/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/profoundry-us/material/downloads","issues_url":"https://api.github.com/repos/profoundry-us/material/issues{/number}","pulls_url":"https://api.github.com/repos/profoundry-us/material/pulls{/number}","milestones_url":"https://api.github.com/repos/profoundry-us/material/milestones{/number}","notifications_url":"https://api.github.com/repos/profoundry-us/material/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/profoundry-us/material/labels{/name}","releases_url":"https://api.github.com/repos/profoundry-us/material/releases{/id}","created_at":"2015-04-17T02:33:20Z","updated_at":"2016-01-15T19:22:53Z","pushed_at":"2016-01-20T21:59:19Z","git_url":"git://github.com/profoundry-us/material.git","ssh_url":"git@github.com:profoundry-us/material.git","clone_url":"https://github.com/profoundry-us/material.git","svn_url":"https://github.com/profoundry-us/material","homepage":"https://material.angularjs.org/","size":40587,"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":"bf78b0c43f6efbd4c050dfc582153a7ce31fa9e5","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}","created_at":"2014-07-01T19:20:06Z","updated_at":"2016-01-21T16:33:12Z","pushed_at":"2016-01-21T18:14:19Z","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":45842,"stargazers_count":12240,"watchers_count":12240,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":2302,"mirror_url":null,"open_issues_count":1570,"forks":2302,"open_issues":1570,"watchers":12240,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/angular/material/pulls/6770"},"html":{"href":"https://github.com/angular/material/pull/6770"},"issue":{"href":"https://api.github.com/repos/angular/material/issues/6770"},"comments":{"href":"https://api.github.com/repos/angular/material/issues/6770/comments"},"review_comments":{"href":"https://api.github.com/repos/angular/material/pulls/6770/comments"},"review_comment":{"href":"https://api.github.com/repos/angular/material/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/angular/material/pulls/6770/commits"},"statuses":{"href":"https://api.github.com/repos/angular/material/statuses/ddecc122218c0e256c5bfa7dabb544e1c4e90900"}}}}