{"action":"created","comment":{"url":"https://api.github.com/repos/angular/material/pulls/comments/58101848","id":58101848,"diff_hunk":"@@ -228,66 +230,54 @@ function MdAutocomplete () {\n       }\n \n       function getInputElement () {\n+        var commonInputAttrs =\n+          'type=\"search\" \\n' +\n+          'name=\"{{inputName}}\" \\n' +\n+          'autocomplete=\"off\" \\n' +\n+          'ng-required=\"$mdAutocompleteCtrl.isRequired\" \\n' +\n+          'ng-disabled=\"$mdAutocompleteCtrl.isDisabled\" \\n' +\n+          'ng-model=\"$mdAutocompleteCtrl.scope.searchText\" \\n' +\n+          'ng-readonly=\"$mdAutocompleteCtrl.isReadonly\" \\n' +\n+          'ng-keydown=\"$mdAutocompleteCtrl.keydown($event)\" \\n' +\n+          'ng-blur=\"$mdAutocompleteCtrl.blur()\" \\n' +\n+          'ng-focus=\"$mdAutocompleteCtrl.focus()\" \\n' +\n+          'ng-class=\"::inputClass\" \\n' +","path":"src/components/autocomplete/js/autocompleteDirective.js","position":31,"original_position":31,"commit_id":"f327b0fb06f65ff17e800cbbb920a2192b599478","original_commit_id":"f327b0fb06f65ff17e800cbbb920a2192b599478","user":{"login":"DevVersion","id":4987015,"avatar_url":"https://avatars.githubusercontent.com/u/4987015?v=3","gravatar_id":"","url":"https://api.github.com/users/DevVersion","html_url":"https://github.com/DevVersion","followers_url":"https://api.github.com/users/DevVersion/followers","following_url":"https://api.github.com/users/DevVersion/following{/other_user}","gists_url":"https://api.github.com/users/DevVersion/gists{/gist_id}","starred_url":"https://api.github.com/users/DevVersion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DevVersion/subscriptions","organizations_url":"https://api.github.com/users/DevVersion/orgs","repos_url":"https://api.github.com/users/DevVersion/repos","events_url":"https://api.github.com/users/DevVersion/events{/privacy}","received_events_url":"https://api.github.com/users/DevVersion/received_events","type":"User","site_admin":false},"body":"Wouldn't it make more sense, to remove the one-time binding?","created_at":"2016-03-31T18:16:46Z","updated_at":"2016-03-31T18:16:46Z","html_url":"https://github.com/angular/material/pull/7808#discussion_r58101848","pull_request_url":"https://api.github.com/repos/angular/material/pulls/7808","_links":{"self":{"href":"https://api.github.com/repos/angular/material/pulls/comments/58101848"},"html":{"href":"https://github.com/angular/material/pull/7808#discussion_r58101848"},"pull_request":{"href":"https://api.github.com/repos/angular/material/pulls/7808"}}},"pull_request":{"url":"https://api.github.com/repos/angular/material/pulls/7808","id":64675011,"html_url":"https://github.com/angular/material/pull/7808","diff_url":"https://github.com/angular/material/pull/7808.diff","patch_url":"https://github.com/angular/material/pull/7808.patch","issue_url":"https://api.github.com/repos/angular/material/issues/7808","number":7808,"state":"open","locked":false,"title":"feat(autocomplete): add the possibility to specify extra classes for the input","user":{"login":"crisbeto","id":4450522,"avatar_url":"https://avatars.githubusercontent.com/u/4450522?v=3","gravatar_id":"","url":"https://api.github.com/users/crisbeto","html_url":"https://github.com/crisbeto","followers_url":"https://api.github.com/users/crisbeto/followers","following_url":"https://api.github.com/users/crisbeto/following{/other_user}","gists_url":"https://api.github.com/users/crisbeto/gists{/gist_id}","starred_url":"https://api.github.com/users/crisbeto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crisbeto/subscriptions","organizations_url":"https://api.github.com/users/crisbeto/orgs","repos_url":"https://api.github.com/users/crisbeto/repos","events_url":"https://api.github.com/users/crisbeto/events{/privacy}","received_events_url":"https://api.github.com/users/crisbeto/received_events","type":"User","site_admin":false},"body":"* Adds the ability to specify classes on the `input` element via the `md-input-class` attribute.\r\n* Avoids some redundancy in the `getInputElement` function by abstracting away attributes that are repeated twice.\r\n\r\nCloses #7370.","created_at":"2016-03-30T18:32:29Z","updated_at":"2016-03-31T18:16:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b9878b2be53fdf6c98f13e0afcfa663941403be8","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/angular/material/pulls/7808/commits","review_comments_url":"https://api.github.com/repos/angular/material/pulls/7808/comments","review_comment_url":"https://api.github.com/repos/angular/material/pulls/comments{/number}","comments_url":"https://api.github.com/repos/angular/material/issues/7808/comments","statuses_url":"https://api.github.com/repos/angular/material/statuses/f327b0fb06f65ff17e800cbbb920a2192b599478","head":{"label":"crisbeto:feat/md-input-cl","ref":"feat/md-input-cl","sha":"f327b0fb06f65ff17e800cbbb920a2192b599478","user":{"login":"crisbeto","id":4450522,"avatar_url":"https://avatars.githubusercontent.com/u/4450522?v=3","gravatar_id":"","url":"https://api.github.com/users/crisbeto","html_url":"https://github.com/crisbeto","followers_url":"https://api.github.com/users/crisbeto/followers","following_url":"https://api.github.com/users/crisbeto/following{/other_user}","gists_url":"https://api.github.com/users/crisbeto/gists{/gist_id}","starred_url":"https://api.github.com/users/crisbeto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crisbeto/subscriptions","organizations_url":"https://api.github.com/users/crisbeto/orgs","repos_url":"https://api.github.com/users/crisbeto/repos","events_url":"https://api.github.com/users/crisbeto/events{/privacy}","received_events_url":"https://api.github.com/users/crisbeto/received_events","type":"User","site_admin":false},"repo":{"id":51659231,"name":"material","full_name":"crisbeto/material","owner":{"login":"crisbeto","id":4450522,"avatar_url":"https://avatars.githubusercontent.com/u/4450522?v=3","gravatar_id":"","url":"https://api.github.com/users/crisbeto","html_url":"https://github.com/crisbeto","followers_url":"https://api.github.com/users/crisbeto/followers","following_url":"https://api.github.com/users/crisbeto/following{/other_user}","gists_url":"https://api.github.com/users/crisbeto/gists{/gist_id}","starred_url":"https://api.github.com/users/crisbeto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crisbeto/subscriptions","organizations_url":"https://api.github.com/users/crisbeto/orgs","repos_url":"https://api.github.com/users/crisbeto/repos","events_url":"https://api.github.com/users/crisbeto/events{/privacy}","received_events_url":"https://api.github.com/users/crisbeto/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/crisbeto/material","description":"Material design for Angular","fork":true,"url":"https://api.github.com/repos/crisbeto/material","forks_url":"https://api.github.com/repos/crisbeto/material/forks","keys_url":"https://api.github.com/repos/crisbeto/material/keys{/key_id}","collaborators_url":"https://api.github.com/repos/crisbeto/material/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/crisbeto/material/teams","hooks_url":"https://api.github.com/repos/crisbeto/material/hooks","issue_events_url":"https://api.github.com/repos/crisbeto/material/issues/events{/number}","events_url":"https://api.github.com/repos/crisbeto/material/events","assignees_url":"https://api.github.com/repos/crisbeto/material/assignees{/user}","branches_url":"https://api.github.com/repos/crisbeto/material/branches{/branch}","tags_url":"https://api.github.com/repos/crisbeto/material/tags","blobs_url":"https://api.github.com/repos/crisbeto/material/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/crisbeto/material/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/crisbeto/material/git/refs{/sha}","trees_url":"https://api.github.com/repos/crisbeto/material/git/trees{/sha}","statuses_url":"https://api.github.com/repos/crisbeto/material/statuses/{sha}","languages_url":"https://api.github.com/repos/crisbeto/material/languages","stargazers_url":"https://api.github.com/repos/crisbeto/material/stargazers","contributors_url":"https://api.github.com/repos/crisbeto/material/contributors","subscribers_url":"https://api.github.com/repos/crisbeto/material/subscribers","subscription_url":"https://api.github.com/repos/crisbeto/material/subscription","commits_url":"https://api.github.com/repos/crisbeto/material/commits{/sha}","git_commits_url":"https://api.github.com/repos/crisbeto/material/git/commits{/sha}","comments_url":"https://api.github.com/repos/crisbeto/material/comments{/number}","issue_comment_url":"https://api.github.com/repos/crisbeto/material/issues/comments{/number}","contents_url":"https://api.github.com/repos/crisbeto/material/contents/{+path}","compare_url":"https://api.github.com/repos/crisbeto/material/compare/{base}...{head}","merges_url":"https://api.github.com/repos/crisbeto/material/merges","archive_url":"https://api.github.com/repos/crisbeto/material/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/crisbeto/material/downloads","issues_url":"https://api.github.com/repos/crisbeto/material/issues{/number}","pulls_url":"https://api.github.com/repos/crisbeto/material/pulls{/number}","milestones_url":"https://api.github.com/repos/crisbeto/material/milestones{/number}","notifications_url":"https://api.github.com/repos/crisbeto/material/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/crisbeto/material/labels{/name}","releases_url":"https://api.github.com/repos/crisbeto/material/releases{/id}","deployments_url":"https://api.github.com/repos/crisbeto/material/deployments","created_at":"2016-02-13T18:29:24Z","updated_at":"2016-02-13T18:29:27Z","pushed_at":"2016-03-31T05:46:48Z","git_url":"git://github.com/crisbeto/material.git","ssh_url":"git@github.com:crisbeto/material.git","clone_url":"https://github.com/crisbeto/material.git","svn_url":"https://github.com/crisbeto/material","homepage":"https://material.angularjs.org/","size":41804,"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":"cc4f6263ee0b65ae647e06f64b318994e7eda2d8","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-03-31T17:20:00Z","pushed_at":"2016-03-31T18:14:59Z","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":78856,"stargazers_count":13080,"watchers_count":13080,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":2590,"mirror_url":null,"open_issues_count":1660,"forks":2590,"open_issues":1660,"watchers":13080,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/angular/material/pulls/7808"},"html":{"href":"https://github.com/angular/material/pull/7808"},"issue":{"href":"https://api.github.com/repos/angular/material/issues/7808"},"comments":{"href":"https://api.github.com/repos/angular/material/issues/7808/comments"},"review_comments":{"href":"https://api.github.com/repos/angular/material/pulls/7808/comments"},"review_comment":{"href":"https://api.github.com/repos/angular/material/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/angular/material/pulls/7808/commits"},"statuses":{"href":"https://api.github.com/repos/angular/material/statuses/f327b0fb06f65ff17e800cbbb920a2192b599478"}}}}