{"action":"created","comment":{"url":"https://api.github.com/repos/webcomponents/shadycss/pulls/comments/79503644","id":79503644,"diff_hunk":"@@ -0,0 +1,50 @@\n+/**\n+@license\n+Copyright (c) 2016 The Polymer Project Authors. All rights reserved.\n+This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt\n+The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt\n+The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt\n+Code distributed by Google as part of the polymer project is also\n+subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt\n+*/\n+'use strict';\n+\n+export default class StyleCache {\n+  constructor(max = 100) {\n+    // map element name -> [{properties, stylesheet, scopeSelector}]\n+    this.cache = {};\n+    this.max = max;","path":"src/style-cache.js","position":16,"original_position":16,"commit_id":"8a482862dfa6171de8551ccd16c3ba9f7e748896","original_commit_id":"8a482862dfa6171de8551ccd16c3ba9f7e748896","user":{"login":"sorvell","id":78891,"avatar_url":"https://avatars.githubusercontent.com/u/78891?v=3","gravatar_id":"","url":"https://api.github.com/users/sorvell","html_url":"https://github.com/sorvell","followers_url":"https://api.github.com/users/sorvell/followers","following_url":"https://api.github.com/users/sorvell/following{/other_user}","gists_url":"https://api.github.com/users/sorvell/gists{/gist_id}","starred_url":"https://api.github.com/users/sorvell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sorvell/subscriptions","organizations_url":"https://api.github.com/users/sorvell/orgs","repos_url":"https://api.github.com/users/sorvell/repos","events_url":"https://api.github.com/users/sorvell/events{/privacy}","received_events_url":"https://api.github.com/users/sorvell/received_events","type":"User","site_admin":false},"body":"Let's name this more explicitly since it's a maximum per type, perhaps `typeMax` ?","created_at":"2016-09-19T22:30:20Z","updated_at":"2016-09-19T22:30:20Z","html_url":"https://github.com/webcomponents/shadycss/pull/8#discussion_r79503644","pull_request_url":"https://api.github.com/repos/webcomponents/shadycss/pulls/8","_links":{"self":{"href":"https://api.github.com/repos/webcomponents/shadycss/pulls/comments/79503644"},"html":{"href":"https://github.com/webcomponents/shadycss/pull/8#discussion_r79503644"},"pull_request":{"href":"https://api.github.com/repos/webcomponents/shadycss/pulls/8"}}},"pull_request":{"url":"https://api.github.com/repos/webcomponents/shadycss/pulls/8","id":85630585,"html_url":"https://github.com/webcomponents/shadycss/pull/8","diff_url":"https://github.com/webcomponents/shadycss/pull/8.diff","patch_url":"https://github.com/webcomponents/shadycss/pull/8.patch","issue_url":"https://api.github.com/repos/webcomponents/shadycss/issues/8","number":8,"state":"open","locked":false,"title":"Port global caching strategy from Polymer 1.x","user":{"login":"azakus","id":46725,"avatar_url":"https://avatars.githubusercontent.com/u/46725?v=3","gravatar_id":"","url":"https://api.github.com/users/azakus","html_url":"https://github.com/azakus","followers_url":"https://api.github.com/users/azakus/followers","following_url":"https://api.github.com/users/azakus/following{/other_user}","gists_url":"https://api.github.com/users/azakus/gists{/gist_id}","starred_url":"https://api.github.com/users/azakus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/azakus/subscriptions","organizations_url":"https://api.github.com/users/azakus/orgs","repos_url":"https://api.github.com/users/azakus/repos","events_url":"https://api.github.com/users/azakus/events{/privacy}","received_events_url":"https://api.github.com/users/azakus/received_events","type":"User","site_admin":false},"body":null,"created_at":"2016-09-16T19:55:32Z","updated_at":"2016-09-19T22:34:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":"17947241a74adea6e89d78fca1de0d97a20a242f","assignee":{"login":"sorvell","id":78891,"avatar_url":"https://avatars.githubusercontent.com/u/78891?v=3","gravatar_id":"","url":"https://api.github.com/users/sorvell","html_url":"https://github.com/sorvell","followers_url":"https://api.github.com/users/sorvell/followers","following_url":"https://api.github.com/users/sorvell/following{/other_user}","gists_url":"https://api.github.com/users/sorvell/gists{/gist_id}","starred_url":"https://api.github.com/users/sorvell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sorvell/subscriptions","organizations_url":"https://api.github.com/users/sorvell/orgs","repos_url":"https://api.github.com/users/sorvell/repos","events_url":"https://api.github.com/users/sorvell/events{/privacy}","received_events_url":"https://api.github.com/users/sorvell/received_events","type":"User","site_admin":false},"assignees":[{"login":"sorvell","id":78891,"avatar_url":"https://avatars.githubusercontent.com/u/78891?v=3","gravatar_id":"","url":"https://api.github.com/users/sorvell","html_url":"https://github.com/sorvell","followers_url":"https://api.github.com/users/sorvell/followers","following_url":"https://api.github.com/users/sorvell/following{/other_user}","gists_url":"https://api.github.com/users/sorvell/gists{/gist_id}","starred_url":"https://api.github.com/users/sorvell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sorvell/subscriptions","organizations_url":"https://api.github.com/users/sorvell/orgs","repos_url":"https://api.github.com/users/sorvell/repos","events_url":"https://api.github.com/users/sorvell/events{/privacy}","received_events_url":"https://api.github.com/users/sorvell/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/webcomponents/shadycss/pulls/8/commits","review_comments_url":"https://api.github.com/repos/webcomponents/shadycss/pulls/8/comments","review_comment_url":"https://api.github.com/repos/webcomponents/shadycss/pulls/comments{/number}","comments_url":"https://api.github.com/repos/webcomponents/shadycss/issues/8/comments","statuses_url":"https://api.github.com/repos/webcomponents/shadycss/statuses/8a482862dfa6171de8551ccd16c3ba9f7e748896","head":{"label":"webcomponents:style-cache","ref":"style-cache","sha":"8a482862dfa6171de8551ccd16c3ba9f7e748896","user":{"login":"webcomponents","id":1905708,"avatar_url":"https://avatars.githubusercontent.com/u/1905708?v=3","gravatar_id":"","url":"https://api.github.com/users/webcomponents","html_url":"https://github.com/webcomponents","followers_url":"https://api.github.com/users/webcomponents/followers","following_url":"https://api.github.com/users/webcomponents/following{/other_user}","gists_url":"https://api.github.com/users/webcomponents/gists{/gist_id}","starred_url":"https://api.github.com/users/webcomponents/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/webcomponents/subscriptions","organizations_url":"https://api.github.com/users/webcomponents/orgs","repos_url":"https://api.github.com/users/webcomponents/repos","events_url":"https://api.github.com/users/webcomponents/events{/privacy}","received_events_url":"https://api.github.com/users/webcomponents/received_events","type":"Organization","site_admin":false},"repo":{"id":67728267,"name":"shadycss","full_name":"webcomponents/shadycss","owner":{"login":"webcomponents","id":1905708,"avatar_url":"https://avatars.githubusercontent.com/u/1905708?v=3","gravatar_id":"","url":"https://api.github.com/users/webcomponents","html_url":"https://github.com/webcomponents","followers_url":"https://api.github.com/users/webcomponents/followers","following_url":"https://api.github.com/users/webcomponents/following{/other_user}","gists_url":"https://api.github.com/users/webcomponents/gists{/gist_id}","starred_url":"https://api.github.com/users/webcomponents/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/webcomponents/subscriptions","organizations_url":"https://api.github.com/users/webcomponents/orgs","repos_url":"https://api.github.com/users/webcomponents/repos","events_url":"https://api.github.com/users/webcomponents/events{/privacy}","received_events_url":"https://api.github.com/users/webcomponents/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/webcomponents/shadycss","description":null,"fork":false,"url":"https://api.github.com/repos/webcomponents/shadycss","forks_url":"https://api.github.com/repos/webcomponents/shadycss/forks","keys_url":"https://api.github.com/repos/webcomponents/shadycss/keys{/key_id}","collaborators_url":"https://api.github.com/repos/webcomponents/shadycss/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/webcomponents/shadycss/teams","hooks_url":"https://api.github.com/repos/webcomponents/shadycss/hooks","issue_events_url":"https://api.github.com/repos/webcomponents/shadycss/issues/events{/number}","events_url":"https://api.github.com/repos/webcomponents/shadycss/events","assignees_url":"https://api.github.com/repos/webcomponents/shadycss/assignees{/user}","branches_url":"https://api.github.com/repos/webcomponents/shadycss/branches{/branch}","tags_url":"https://api.github.com/repos/webcomponents/shadycss/tags","blobs_url":"https://api.github.com/repos/webcomponents/shadycss/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/webcomponents/shadycss/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/webcomponents/shadycss/git/refs{/sha}","trees_url":"https://api.github.com/repos/webcomponents/shadycss/git/trees{/sha}","statuses_url":"https://api.github.com/repos/webcomponents/shadycss/statuses/{sha}","languages_url":"https://api.github.com/repos/webcomponents/shadycss/languages","stargazers_url":"https://api.github.com/repos/webcomponents/shadycss/stargazers","contributors_url":"https://api.github.com/repos/webcomponents/shadycss/contributors","subscribers_url":"https://api.github.com/repos/webcomponents/shadycss/subscribers","subscription_url":"https://api.github.com/repos/webcomponents/shadycss/subscription","commits_url":"https://api.github.com/repos/webcomponents/shadycss/commits{/sha}","git_commits_url":"https://api.github.com/repos/webcomponents/shadycss/git/commits{/sha}","comments_url":"https://api.github.com/repos/webcomponents/shadycss/comments{/number}","issue_comment_url":"https://api.github.com/repos/webcomponents/shadycss/issues/comments{/number}","contents_url":"https://api.github.com/repos/webcomponents/shadycss/contents/{+path}","compare_url":"https://api.github.com/repos/webcomponents/shadycss/compare/{base}...{head}","merges_url":"https://api.github.com/repos/webcomponents/shadycss/merges","archive_url":"https://api.github.com/repos/webcomponents/shadycss/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/webcomponents/shadycss/downloads","issues_url":"https://api.github.com/repos/webcomponents/shadycss/issues{/number}","pulls_url":"https://api.github.com/repos/webcomponents/shadycss/pulls{/number}","milestones_url":"https://api.github.com/repos/webcomponents/shadycss/milestones{/number}","notifications_url":"https://api.github.com/repos/webcomponents/shadycss/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/webcomponents/shadycss/labels{/name}","releases_url":"https://api.github.com/repos/webcomponents/shadycss/releases{/id}","deployments_url":"https://api.github.com/repos/webcomponents/shadycss/deployments","created_at":"2016-09-08T18:11:53Z","updated_at":"2016-09-16T03:37:52Z","pushed_at":"2016-09-19T19:58:51Z","git_url":"git://github.com/webcomponents/shadycss.git","ssh_url":"git@github.com:webcomponents/shadycss.git","clone_url":"https://github.com/webcomponents/shadycss.git","svn_url":"https://github.com/webcomponents/shadycss","homepage":null,"size":169,"stargazers_count":7,"watchers_count":7,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":5,"forks":2,"open_issues":5,"watchers":7,"default_branch":"master"}},"base":{"label":"webcomponents:master","ref":"master","sha":"4e3aa5ed32114015cad9bb977d4fe1afb8450133","user":{"login":"webcomponents","id":1905708,"avatar_url":"https://avatars.githubusercontent.com/u/1905708?v=3","gravatar_id":"","url":"https://api.github.com/users/webcomponents","html_url":"https://github.com/webcomponents","followers_url":"https://api.github.com/users/webcomponents/followers","following_url":"https://api.github.com/users/webcomponents/following{/other_user}","gists_url":"https://api.github.com/users/webcomponents/gists{/gist_id}","starred_url":"https://api.github.com/users/webcomponents/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/webcomponents/subscriptions","organizations_url":"https://api.github.com/users/webcomponents/orgs","repos_url":"https://api.github.com/users/webcomponents/repos","events_url":"https://api.github.com/users/webcomponents/events{/privacy}","received_events_url":"https://api.github.com/users/webcomponents/received_events","type":"Organization","site_admin":false},"repo":{"id":67728267,"name":"shadycss","full_name":"webcomponents/shadycss","owner":{"login":"webcomponents","id":1905708,"avatar_url":"https://avatars.githubusercontent.com/u/1905708?v=3","gravatar_id":"","url":"https://api.github.com/users/webcomponents","html_url":"https://github.com/webcomponents","followers_url":"https://api.github.com/users/webcomponents/followers","following_url":"https://api.github.com/users/webcomponents/following{/other_user}","gists_url":"https://api.github.com/users/webcomponents/gists{/gist_id}","starred_url":"https://api.github.com/users/webcomponents/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/webcomponents/subscriptions","organizations_url":"https://api.github.com/users/webcomponents/orgs","repos_url":"https://api.github.com/users/webcomponents/repos","events_url":"https://api.github.com/users/webcomponents/events{/privacy}","received_events_url":"https://api.github.com/users/webcomponents/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/webcomponents/shadycss","description":null,"fork":false,"url":"https://api.github.com/repos/webcomponents/shadycss","forks_url":"https://api.github.com/repos/webcomponents/shadycss/forks","keys_url":"https://api.github.com/repos/webcomponents/shadycss/keys{/key_id}","collaborators_url":"https://api.github.com/repos/webcomponents/shadycss/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/webcomponents/shadycss/teams","hooks_url":"https://api.github.com/repos/webcomponents/shadycss/hooks","issue_events_url":"https://api.github.com/repos/webcomponents/shadycss/issues/events{/number}","events_url":"https://api.github.com/repos/webcomponents/shadycss/events","assignees_url":"https://api.github.com/repos/webcomponents/shadycss/assignees{/user}","branches_url":"https://api.github.com/repos/webcomponents/shadycss/branches{/branch}","tags_url":"https://api.github.com/repos/webcomponents/shadycss/tags","blobs_url":"https://api.github.com/repos/webcomponents/shadycss/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/webcomponents/shadycss/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/webcomponents/shadycss/git/refs{/sha}","trees_url":"https://api.github.com/repos/webcomponents/shadycss/git/trees{/sha}","statuses_url":"https://api.github.com/repos/webcomponents/shadycss/statuses/{sha}","languages_url":"https://api.github.com/repos/webcomponents/shadycss/languages","stargazers_url":"https://api.github.com/repos/webcomponents/shadycss/stargazers","contributors_url":"https://api.github.com/repos/webcomponents/shadycss/contributors","subscribers_url":"https://api.github.com/repos/webcomponents/shadycss/subscribers","subscription_url":"https://api.github.com/repos/webcomponents/shadycss/subscription","commits_url":"https://api.github.com/repos/webcomponents/shadycss/commits{/sha}","git_commits_url":"https://api.github.com/repos/webcomponents/shadycss/git/commits{/sha}","comments_url":"https://api.github.com/repos/webcomponents/shadycss/comments{/number}","issue_comment_url":"https://api.github.com/repos/webcomponents/shadycss/issues/comments{/number}","contents_url":"https://api.github.com/repos/webcomponents/shadycss/contents/{+path}","compare_url":"https://api.github.com/repos/webcomponents/shadycss/compare/{base}...{head}","merges_url":"https://api.github.com/repos/webcomponents/shadycss/merges","archive_url":"https://api.github.com/repos/webcomponents/shadycss/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/webcomponents/shadycss/downloads","issues_url":"https://api.github.com/repos/webcomponents/shadycss/issues{/number}","pulls_url":"https://api.github.com/repos/webcomponents/shadycss/pulls{/number}","milestones_url":"https://api.github.com/repos/webcomponents/shadycss/milestones{/number}","notifications_url":"https://api.github.com/repos/webcomponents/shadycss/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/webcomponents/shadycss/labels{/name}","releases_url":"https://api.github.com/repos/webcomponents/shadycss/releases{/id}","deployments_url":"https://api.github.com/repos/webcomponents/shadycss/deployments","created_at":"2016-09-08T18:11:53Z","updated_at":"2016-09-16T03:37:52Z","pushed_at":"2016-09-19T19:58:51Z","git_url":"git://github.com/webcomponents/shadycss.git","ssh_url":"git@github.com:webcomponents/shadycss.git","clone_url":"https://github.com/webcomponents/shadycss.git","svn_url":"https://github.com/webcomponents/shadycss","homepage":null,"size":169,"stargazers_count":7,"watchers_count":7,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":5,"forks":2,"open_issues":5,"watchers":7,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/webcomponents/shadycss/pulls/8"},"html":{"href":"https://github.com/webcomponents/shadycss/pull/8"},"issue":{"href":"https://api.github.com/repos/webcomponents/shadycss/issues/8"},"comments":{"href":"https://api.github.com/repos/webcomponents/shadycss/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/webcomponents/shadycss/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/webcomponents/shadycss/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/webcomponents/shadycss/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/webcomponents/shadycss/statuses/8a482862dfa6171de8551ccd16c3ba9f7e748896"}}}}
{"actor":{"display_login":"sorvell"}}