{"action":"created","comment":{"url":"https://api.github.com/repos/angular/angular/pulls/comments/82692315","pull_request_review_id":3582359,"id":82692315,"diff_hunk":"@@ -278,14 +278,18 @@ function _shimHostAttribute(componentShortId: string): string {\n   return HOST_ATTR.replace(COMPONENT_REGEX, componentShortId);\n }\n \n-function _flattenStyles(compId: string, styles: Array<any|any[]>, target: string[]): string[] {\n-  for (var i = 0; i < styles.length; i++) {\n-    var style = styles[i];\n+function _flattenStyles(","path":"modules/@angular/platform-browser/src/dom/dom_renderer.ts","position":null,"original_position":53,"commit_id":"2762f3e5c2cac1533463d14153cb2cb8bf1c6eb0","original_commit_id":"953bca27f123e4c9fe56d6b06a524b03e9ba6260","user":{"login":"DzmitryShylovich","id":9335533,"avatar_url":"https://avatars.githubusercontent.com/u/9335533?v=3","gravatar_id":"","url":"https://api.github.com/users/DzmitryShylovich","html_url":"https://github.com/DzmitryShylovich","followers_url":"https://api.github.com/users/DzmitryShylovich/followers","following_url":"https://api.github.com/users/DzmitryShylovich/following{/other_user}","gists_url":"https://api.github.com/users/DzmitryShylovich/gists{/gist_id}","starred_url":"https://api.github.com/users/DzmitryShylovich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DzmitryShylovich/subscriptions","organizations_url":"https://api.github.com/users/DzmitryShylovich/orgs","repos_url":"https://api.github.com/users/DzmitryShylovich/repos","events_url":"https://api.github.com/users/DzmitryShylovich/events{/privacy}","received_events_url":"https://api.github.com/users/DzmitryShylovich/received_events","type":"User","site_admin":false},"body":"done","created_at":"2016-10-10T22:08:36Z","updated_at":"2016-10-10T22:08:36Z","html_url":"https://github.com/angular/angular/pull/12203#discussion_r82692315","pull_request_url":"https://api.github.com/repos/angular/angular/pulls/12203","_links":{"self":{"href":"https://api.github.com/repos/angular/angular/pulls/comments/82692315"},"html":{"href":"https://github.com/angular/angular/pull/12203#discussion_r82692315"},"pull_request":{"href":"https://api.github.com/repos/angular/angular/pulls/12203"}}},"pull_request":{"url":"https://api.github.com/repos/angular/angular/pulls/12203","id":88711739,"html_url":"https://github.com/angular/angular/pull/12203","diff_url":"https://github.com/angular/angular/pull/12203.diff","patch_url":"https://github.com/angular/angular/pull/12203.patch","issue_url":"https://api.github.com/repos/angular/angular/issues/12203","number":12203,"state":"open","locked":false,"title":"fix(dom_renderer): check if style is empty","user":{"login":"DzmitryShylovich","id":9335533,"avatar_url":"https://avatars.githubusercontent.com/u/9335533?v=3","gravatar_id":"","url":"https://api.github.com/users/DzmitryShylovich","html_url":"https://github.com/DzmitryShylovich","followers_url":"https://api.github.com/users/DzmitryShylovich/followers","following_url":"https://api.github.com/users/DzmitryShylovich/following{/other_user}","gists_url":"https://api.github.com/users/DzmitryShylovich/gists{/gist_id}","starred_url":"https://api.github.com/users/DzmitryShylovich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DzmitryShylovich/subscriptions","organizations_url":"https://api.github.com/users/DzmitryShylovich/orgs","repos_url":"https://api.github.com/users/DzmitryShylovich/repos","events_url":"https://api.github.com/users/DzmitryShylovich/events{/privacy}","received_events_url":"https://api.github.com/users/DzmitryShylovich/received_events","type":"User","site_admin":false},"body":"Fixes https://github.com/angular/angular/issues/11408\r\n\r\nSome notes:\r\nIn AOT when ViewEncapsulation is set to None/Native [_flattenStyles](https://github.com/angular/angular/blob/master/modules/%40angular/platform-browser/src/dom/dom_renderer.ts#L281) method is called with `styles` array of length 1 but contains value [undefined](http://prntscr.com/cs7mhw). And this is not the case in JIT mode http://prntscr.com/cs7s2x\r\nSo I think there's an issue with ViewEncapsulation processing in aot mode.","created_at":"2016-10-10T18:47:06Z","updated_at":"2016-10-10T22:08:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3c77d901692b5f83fe8d958daa1aaf928a963a27","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/angular/angular/pulls/12203/commits","review_comments_url":"https://api.github.com/repos/angular/angular/pulls/12203/comments","review_comment_url":"https://api.github.com/repos/angular/angular/pulls/comments{/number}","comments_url":"https://api.github.com/repos/angular/angular/issues/12203/comments","statuses_url":"https://api.github.com/repos/angular/angular/statuses/2762f3e5c2cac1533463d14153cb2cb8bf1c6eb0","head":{"label":"DzmitryShylovich:fix-11408","ref":"fix-11408","sha":"2762f3e5c2cac1533463d14153cb2cb8bf1c6eb0","user":{"login":"DzmitryShylovich","id":9335533,"avatar_url":"https://avatars.githubusercontent.com/u/9335533?v=3","gravatar_id":"","url":"https://api.github.com/users/DzmitryShylovich","html_url":"https://github.com/DzmitryShylovich","followers_url":"https://api.github.com/users/DzmitryShylovich/followers","following_url":"https://api.github.com/users/DzmitryShylovich/following{/other_user}","gists_url":"https://api.github.com/users/DzmitryShylovich/gists{/gist_id}","starred_url":"https://api.github.com/users/DzmitryShylovich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DzmitryShylovich/subscriptions","organizations_url":"https://api.github.com/users/DzmitryShylovich/orgs","repos_url":"https://api.github.com/users/DzmitryShylovich/repos","events_url":"https://api.github.com/users/DzmitryShylovich/events{/privacy}","received_events_url":"https://api.github.com/users/DzmitryShylovich/received_events","type":"User","site_admin":false},"repo":{"id":56142926,"name":"angular","full_name":"DzmitryShylovich/angular","owner":{"login":"DzmitryShylovich","id":9335533,"avatar_url":"https://avatars.githubusercontent.com/u/9335533?v=3","gravatar_id":"","url":"https://api.github.com/users/DzmitryShylovich","html_url":"https://github.com/DzmitryShylovich","followers_url":"https://api.github.com/users/DzmitryShylovich/followers","following_url":"https://api.github.com/users/DzmitryShylovich/following{/other_user}","gists_url":"https://api.github.com/users/DzmitryShylovich/gists{/gist_id}","starred_url":"https://api.github.com/users/DzmitryShylovich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DzmitryShylovich/subscriptions","organizations_url":"https://api.github.com/users/DzmitryShylovich/orgs","repos_url":"https://api.github.com/users/DzmitryShylovich/repos","events_url":"https://api.github.com/users/DzmitryShylovich/events{/privacy}","received_events_url":"https://api.github.com/users/DzmitryShylovich/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/DzmitryShylovich/angular","description":"","fork":true,"url":"https://api.github.com/repos/DzmitryShylovich/angular","forks_url":"https://api.github.com/repos/DzmitryShylovich/angular/forks","keys_url":"https://api.github.com/repos/DzmitryShylovich/angular/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DzmitryShylovich/angular/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DzmitryShylovich/angular/teams","hooks_url":"https://api.github.com/repos/DzmitryShylovich/angular/hooks","issue_events_url":"https://api.github.com/repos/DzmitryShylovich/angular/issues/events{/number}","events_url":"https://api.github.com/repos/DzmitryShylovich/angular/events","assignees_url":"https://api.github.com/repos/DzmitryShylovich/angular/assignees{/user}","branches_url":"https://api.github.com/repos/DzmitryShylovich/angular/branches{/branch}","tags_url":"https://api.github.com/repos/DzmitryShylovich/angular/tags","blobs_url":"https://api.github.com/repos/DzmitryShylovich/angular/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DzmitryShylovich/angular/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DzmitryShylovich/angular/git/refs{/sha}","trees_url":"https://api.github.com/repos/DzmitryShylovich/angular/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DzmitryShylovich/angular/statuses/{sha}","languages_url":"https://api.github.com/repos/DzmitryShylovich/angular/languages","stargazers_url":"https://api.github.com/repos/DzmitryShylovich/angular/stargazers","contributors_url":"https://api.github.com/repos/DzmitryShylovich/angular/contributors","subscribers_url":"https://api.github.com/repos/DzmitryShylovich/angular/subscribers","subscription_url":"https://api.github.com/repos/DzmitryShylovich/angular/subscription","commits_url":"https://api.github.com/repos/DzmitryShylovich/angular/commits{/sha}","git_commits_url":"https://api.github.com/repos/DzmitryShylovich/angular/git/commits{/sha}","comments_url":"https://api.github.com/repos/DzmitryShylovich/angular/comments{/number}","issue_comment_url":"https://api.github.com/repos/DzmitryShylovich/angular/issues/comments{/number}","contents_url":"https://api.github.com/repos/DzmitryShylovich/angular/contents/{+path}","compare_url":"https://api.github.com/repos/DzmitryShylovich/angular/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DzmitryShylovich/angular/merges","archive_url":"https://api.github.com/repos/DzmitryShylovich/angular/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DzmitryShylovich/angular/downloads","issues_url":"https://api.github.com/repos/DzmitryShylovich/angular/issues{/number}","pulls_url":"https://api.github.com/repos/DzmitryShylovich/angular/pulls{/number}","milestones_url":"https://api.github.com/repos/DzmitryShylovich/angular/milestones{/number}","notifications_url":"https://api.github.com/repos/DzmitryShylovich/angular/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DzmitryShylovich/angular/labels{/name}","releases_url":"https://api.github.com/repos/DzmitryShylovich/angular/releases{/id}","deployments_url":"https://api.github.com/repos/DzmitryShylovich/angular/deployments","created_at":"2016-04-13T10:34:06Z","updated_at":"2016-04-13T10:34:26Z","pushed_at":"2016-10-10T22:07:36Z","git_url":"git://github.com/DzmitryShylovich/angular.git","ssh_url":"git@github.com:DzmitryShylovich/angular.git","clone_url":"https://github.com/DzmitryShylovich/angular.git","svn_url":"https://github.com/DzmitryShylovich/angular","homepage":"https://angular.io","size":127328,"stargazers_count":0,"watchers_count":0,"language":"TypeScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"angular:master","ref":"master","sha":"d972d8235458a6e65819f96ee56da059ec76321b","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":24195339,"name":"angular","full_name":"angular/angular","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/angular","description":"","fork":false,"url":"https://api.github.com/repos/angular/angular","forks_url":"https://api.github.com/repos/angular/angular/forks","keys_url":"https://api.github.com/repos/angular/angular/keys{/key_id}","collaborators_url":"https://api.github.com/repos/angular/angular/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/angular/angular/teams","hooks_url":"https://api.github.com/repos/angular/angular/hooks","issue_events_url":"https://api.github.com/repos/angular/angular/issues/events{/number}","events_url":"https://api.github.com/repos/angular/angular/events","assignees_url":"https://api.github.com/repos/angular/angular/assignees{/user}","branches_url":"https://api.github.com/repos/angular/angular/branches{/branch}","tags_url":"https://api.github.com/repos/angular/angular/tags","blobs_url":"https://api.github.com/repos/angular/angular/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/angular/angular/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/angular/angular/git/refs{/sha}","trees_url":"https://api.github.com/repos/angular/angular/git/trees{/sha}","statuses_url":"https://api.github.com/repos/angular/angular/statuses/{sha}","languages_url":"https://api.github.com/repos/angular/angular/languages","stargazers_url":"https://api.github.com/repos/angular/angular/stargazers","contributors_url":"https://api.github.com/repos/angular/angular/contributors","subscribers_url":"https://api.github.com/repos/angular/angular/subscribers","subscription_url":"https://api.github.com/repos/angular/angular/subscription","commits_url":"https://api.github.com/repos/angular/angular/commits{/sha}","git_commits_url":"https://api.github.com/repos/angular/angular/git/commits{/sha}","comments_url":"https://api.github.com/repos/angular/angular/comments{/number}","issue_comment_url":"https://api.github.com/repos/angular/angular/issues/comments{/number}","contents_url":"https://api.github.com/repos/angular/angular/contents/{+path}","compare_url":"https://api.github.com/repos/angular/angular/compare/{base}...{head}","merges_url":"https://api.github.com/repos/angular/angular/merges","archive_url":"https://api.github.com/repos/angular/angular/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/angular/angular/downloads","issues_url":"https://api.github.com/repos/angular/angular/issues{/number}","pulls_url":"https://api.github.com/repos/angular/angular/pulls{/number}","milestones_url":"https://api.github.com/repos/angular/angular/milestones{/number}","notifications_url":"https://api.github.com/repos/angular/angular/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/angular/angular/labels{/name}","releases_url":"https://api.github.com/repos/angular/angular/releases{/id}","deployments_url":"https://api.github.com/repos/angular/angular/deployments","created_at":"2014-09-18T16:12:01Z","updated_at":"2016-10-10T22:06:33Z","pushed_at":"2016-10-10T22:07:37Z","git_url":"git://github.com/angular/angular.git","ssh_url":"git@github.com:angular/angular.git","clone_url":"https://github.com/angular/angular.git","svn_url":"https://github.com/angular/angular","homepage":"https://angular.io","size":646734,"stargazers_count":17138,"watchers_count":17138,"language":"TypeScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":4345,"mirror_url":null,"open_issues_count":884,"forks":4345,"open_issues":884,"watchers":17138,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/angular/angular/pulls/12203"},"html":{"href":"https://github.com/angular/angular/pull/12203"},"issue":{"href":"https://api.github.com/repos/angular/angular/issues/12203"},"comments":{"href":"https://api.github.com/repos/angular/angular/issues/12203/comments"},"review_comments":{"href":"https://api.github.com/repos/angular/angular/pulls/12203/comments"},"review_comment":{"href":"https://api.github.com/repos/angular/angular/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/angular/angular/pulls/12203/commits"},"statuses":{"href":"https://api.github.com/repos/angular/angular/statuses/2762f3e5c2cac1533463d14153cb2cb8bf1c6eb0"}}}}
{"actor":{"display_login":"DzmitryShylovich"}}