{"action":"created","comment":{"url":"https://api.github.com/repos/basecamp/trix/pulls/comments/73578777","id":73578777,"diff_hunk":"@@ -0,0 +1,30 @@\n+allAttributeNames = null\n+blockAttributeNames = null\n+textAttributeNames = null\n+listAttributeNames = null\n+\n+Trix.extend\n+\n+  getAllAttributeNames: ->\n+    allAttributeNames ?= Trix.getTextAttributeNames().concat Trix.getBlockAttributeNames()\n+\n+  getBlockAttributes: ->\n+    Trix.config.blockAttributes\n+\n+  getBlockAttributeNames: ->\n+    blockAttributeNames ?= Object.keys(Trix.config.blockAttributes)\n+\n+  getTextAttributes: ->\n+    Trix.config.textAttributes\n+\n+  getTextAttributeNames: ->\n+    textAttributeNames ?= Object.keys(Trix.config.textAttributes)\n+\n+  getListAttributeNames: ->\n+    listAttributeNames ?= (\n+      result = []\n+      for key, object of Trix.config.blockAttributes\n+        if object.hasOwnProperty(\"listAttribute\")\n+          result.push(object.listAttribute)\n+      result\n+    )","path":"src/trix/core/helpers/config.coffee","position":30,"original_position":30,"commit_id":"ae96675ff4e8de62db84b90782415a22e713db94","original_commit_id":"ae96675ff4e8de62db84b90782415a22e713db94","user":{"login":"javan","id":5355,"avatar_url":"https://avatars.githubusercontent.com/u/5355?v=3","gravatar_id":"","url":"https://api.github.com/users/javan","html_url":"https://github.com/javan","followers_url":"https://api.github.com/users/javan/followers","following_url":"https://api.github.com/users/javan/following{/other_user}","gists_url":"https://api.github.com/users/javan/gists{/gist_id}","starred_url":"https://api.github.com/users/javan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/javan/subscriptions","organizations_url":"https://api.github.com/users/javan/orgs","repos_url":"https://api.github.com/users/javan/repos","events_url":"https://api.github.com/users/javan/events{/privacy}","received_events_url":"https://api.github.com/users/javan/received_events","type":"User","site_admin":false},"body":"Could collapse this with a comprehension to:\r\n```coffee\r\nlistAttributeNames ?= (listAttribute for key, {listAttribute} of Trix.config.blockAttributes when listAttribute?)\r\n```","created_at":"2016-08-04T18:37:23Z","updated_at":"2016-08-04T18:37:23Z","html_url":"https://github.com/basecamp/trix/pull/263#discussion_r73578777","pull_request_url":"https://api.github.com/repos/basecamp/trix/pulls/263","_links":{"self":{"href":"https://api.github.com/repos/basecamp/trix/pulls/comments/73578777"},"html":{"href":"https://github.com/basecamp/trix/pull/263#discussion_r73578777"},"pull_request":{"href":"https://api.github.com/repos/basecamp/trix/pulls/263"}}},"pull_request":{"url":"https://api.github.com/repos/basecamp/trix/pulls/263","id":76332743,"html_url":"https://github.com/basecamp/trix/pull/263","diff_url":"https://github.com/basecamp/trix/pull/263.diff","patch_url":"https://github.com/basecamp/trix/pull/263.patch","issue_url":"https://api.github.com/repos/basecamp/trix/issues/263","number":263,"state":"open","locked":false,"title":"Add header support","user":{"login":"drewrygh","id":2018508,"avatar_url":"https://avatars.githubusercontent.com/u/2018508?v=3","gravatar_id":"","url":"https://api.github.com/users/drewrygh","html_url":"https://github.com/drewrygh","followers_url":"https://api.github.com/users/drewrygh/followers","following_url":"https://api.github.com/users/drewrygh/following{/other_user}","gists_url":"https://api.github.com/users/drewrygh/gists{/gist_id}","starred_url":"https://api.github.com/users/drewrygh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drewrygh/subscriptions","organizations_url":"https://api.github.com/users/drewrygh/orgs","repos_url":"https://api.github.com/users/drewrygh/repos","events_url":"https://api.github.com/users/drewrygh/events{/privacy}","received_events_url":"https://api.github.com/users/drewrygh/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-07-05T19:55:15Z","updated_at":"2016-08-04T18:37:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e5c36360f54664024ca87c3ee8ba53ea96b1d15d","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/basecamp/trix/pulls/263/commits","review_comments_url":"https://api.github.com/repos/basecamp/trix/pulls/263/comments","review_comment_url":"https://api.github.com/repos/basecamp/trix/pulls/comments{/number}","comments_url":"https://api.github.com/repos/basecamp/trix/issues/263/comments","statuses_url":"https://api.github.com/repos/basecamp/trix/statuses/ae96675ff4e8de62db84b90782415a22e713db94","head":{"label":"basecamp:header","ref":"header","sha":"ae96675ff4e8de62db84b90782415a22e713db94","user":{"login":"basecamp","id":13131,"avatar_url":"https://avatars.githubusercontent.com/u/13131?v=3","gravatar_id":"","url":"https://api.github.com/users/basecamp","html_url":"https://github.com/basecamp","followers_url":"https://api.github.com/users/basecamp/followers","following_url":"https://api.github.com/users/basecamp/following{/other_user}","gists_url":"https://api.github.com/users/basecamp/gists{/gist_id}","starred_url":"https://api.github.com/users/basecamp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/basecamp/subscriptions","organizations_url":"https://api.github.com/users/basecamp/orgs","repos_url":"https://api.github.com/users/basecamp/repos","events_url":"https://api.github.com/users/basecamp/events{/privacy}","received_events_url":"https://api.github.com/users/basecamp/received_events","type":"Organization","site_admin":false},"repo":{"id":11829145,"name":"trix","full_name":"basecamp/trix","owner":{"login":"basecamp","id":13131,"avatar_url":"https://avatars.githubusercontent.com/u/13131?v=3","gravatar_id":"","url":"https://api.github.com/users/basecamp","html_url":"https://github.com/basecamp","followers_url":"https://api.github.com/users/basecamp/followers","following_url":"https://api.github.com/users/basecamp/following{/other_user}","gists_url":"https://api.github.com/users/basecamp/gists{/gist_id}","starred_url":"https://api.github.com/users/basecamp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/basecamp/subscriptions","organizations_url":"https://api.github.com/users/basecamp/orgs","repos_url":"https://api.github.com/users/basecamp/repos","events_url":"https://api.github.com/users/basecamp/events{/privacy}","received_events_url":"https://api.github.com/users/basecamp/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/basecamp/trix","description":"A rich text editor for everyday writing","fork":false,"url":"https://api.github.com/repos/basecamp/trix","forks_url":"https://api.github.com/repos/basecamp/trix/forks","keys_url":"https://api.github.com/repos/basecamp/trix/keys{/key_id}","collaborators_url":"https://api.github.com/repos/basecamp/trix/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/basecamp/trix/teams","hooks_url":"https://api.github.com/repos/basecamp/trix/hooks","issue_events_url":"https://api.github.com/repos/basecamp/trix/issues/events{/number}","events_url":"https://api.github.com/repos/basecamp/trix/events","assignees_url":"https://api.github.com/repos/basecamp/trix/assignees{/user}","branches_url":"https://api.github.com/repos/basecamp/trix/branches{/branch}","tags_url":"https://api.github.com/repos/basecamp/trix/tags","blobs_url":"https://api.github.com/repos/basecamp/trix/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/basecamp/trix/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/basecamp/trix/git/refs{/sha}","trees_url":"https://api.github.com/repos/basecamp/trix/git/trees{/sha}","statuses_url":"https://api.github.com/repos/basecamp/trix/statuses/{sha}","languages_url":"https://api.github.com/repos/basecamp/trix/languages","stargazers_url":"https://api.github.com/repos/basecamp/trix/stargazers","contributors_url":"https://api.github.com/repos/basecamp/trix/contributors","subscribers_url":"https://api.github.com/repos/basecamp/trix/subscribers","subscription_url":"https://api.github.com/repos/basecamp/trix/subscription","commits_url":"https://api.github.com/repos/basecamp/trix/commits{/sha}","git_commits_url":"https://api.github.com/repos/basecamp/trix/git/commits{/sha}","comments_url":"https://api.github.com/repos/basecamp/trix/comments{/number}","issue_comment_url":"https://api.github.com/repos/basecamp/trix/issues/comments{/number}","contents_url":"https://api.github.com/repos/basecamp/trix/contents/{+path}","compare_url":"https://api.github.com/repos/basecamp/trix/compare/{base}...{head}","merges_url":"https://api.github.com/repos/basecamp/trix/merges","archive_url":"https://api.github.com/repos/basecamp/trix/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/basecamp/trix/downloads","issues_url":"https://api.github.com/repos/basecamp/trix/issues{/number}","pulls_url":"https://api.github.com/repos/basecamp/trix/pulls{/number}","milestones_url":"https://api.github.com/repos/basecamp/trix/milestones{/number}","notifications_url":"https://api.github.com/repos/basecamp/trix/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/basecamp/trix/labels{/name}","releases_url":"https://api.github.com/repos/basecamp/trix/releases{/id}","deployments_url":"https://api.github.com/repos/basecamp/trix/deployments","created_at":"2013-08-01T22:21:30Z","updated_at":"2016-08-04T06:24:52Z","pushed_at":"2016-08-04T16:53:18Z","git_url":"git://github.com/basecamp/trix.git","ssh_url":"git@github.com:basecamp/trix.git","clone_url":"https://github.com/basecamp/trix.git","svn_url":"https://github.com/basecamp/trix","homepage":"https://trix-editor.org/","size":3583,"stargazers_count":7019,"watchers_count":7019,"language":"CoffeeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":266,"mirror_url":null,"open_issues_count":32,"forks":266,"open_issues":32,"watchers":7019,"default_branch":"master"}},"base":{"label":"basecamp:master","ref":"master","sha":"b6a47d1d25cedbbdcfe6b58885377183d1cb0f47","user":{"login":"basecamp","id":13131,"avatar_url":"https://avatars.githubusercontent.com/u/13131?v=3","gravatar_id":"","url":"https://api.github.com/users/basecamp","html_url":"https://github.com/basecamp","followers_url":"https://api.github.com/users/basecamp/followers","following_url":"https://api.github.com/users/basecamp/following{/other_user}","gists_url":"https://api.github.com/users/basecamp/gists{/gist_id}","starred_url":"https://api.github.com/users/basecamp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/basecamp/subscriptions","organizations_url":"https://api.github.com/users/basecamp/orgs","repos_url":"https://api.github.com/users/basecamp/repos","events_url":"https://api.github.com/users/basecamp/events{/privacy}","received_events_url":"https://api.github.com/users/basecamp/received_events","type":"Organization","site_admin":false},"repo":{"id":11829145,"name":"trix","full_name":"basecamp/trix","owner":{"login":"basecamp","id":13131,"avatar_url":"https://avatars.githubusercontent.com/u/13131?v=3","gravatar_id":"","url":"https://api.github.com/users/basecamp","html_url":"https://github.com/basecamp","followers_url":"https://api.github.com/users/basecamp/followers","following_url":"https://api.github.com/users/basecamp/following{/other_user}","gists_url":"https://api.github.com/users/basecamp/gists{/gist_id}","starred_url":"https://api.github.com/users/basecamp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/basecamp/subscriptions","organizations_url":"https://api.github.com/users/basecamp/orgs","repos_url":"https://api.github.com/users/basecamp/repos","events_url":"https://api.github.com/users/basecamp/events{/privacy}","received_events_url":"https://api.github.com/users/basecamp/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/basecamp/trix","description":"A rich text editor for everyday writing","fork":false,"url":"https://api.github.com/repos/basecamp/trix","forks_url":"https://api.github.com/repos/basecamp/trix/forks","keys_url":"https://api.github.com/repos/basecamp/trix/keys{/key_id}","collaborators_url":"https://api.github.com/repos/basecamp/trix/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/basecamp/trix/teams","hooks_url":"https://api.github.com/repos/basecamp/trix/hooks","issue_events_url":"https://api.github.com/repos/basecamp/trix/issues/events{/number}","events_url":"https://api.github.com/repos/basecamp/trix/events","assignees_url":"https://api.github.com/repos/basecamp/trix/assignees{/user}","branches_url":"https://api.github.com/repos/basecamp/trix/branches{/branch}","tags_url":"https://api.github.com/repos/basecamp/trix/tags","blobs_url":"https://api.github.com/repos/basecamp/trix/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/basecamp/trix/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/basecamp/trix/git/refs{/sha}","trees_url":"https://api.github.com/repos/basecamp/trix/git/trees{/sha}","statuses_url":"https://api.github.com/repos/basecamp/trix/statuses/{sha}","languages_url":"https://api.github.com/repos/basecamp/trix/languages","stargazers_url":"https://api.github.com/repos/basecamp/trix/stargazers","contributors_url":"https://api.github.com/repos/basecamp/trix/contributors","subscribers_url":"https://api.github.com/repos/basecamp/trix/subscribers","subscription_url":"https://api.github.com/repos/basecamp/trix/subscription","commits_url":"https://api.github.com/repos/basecamp/trix/commits{/sha}","git_commits_url":"https://api.github.com/repos/basecamp/trix/git/commits{/sha}","comments_url":"https://api.github.com/repos/basecamp/trix/comments{/number}","issue_comment_url":"https://api.github.com/repos/basecamp/trix/issues/comments{/number}","contents_url":"https://api.github.com/repos/basecamp/trix/contents/{+path}","compare_url":"https://api.github.com/repos/basecamp/trix/compare/{base}...{head}","merges_url":"https://api.github.com/repos/basecamp/trix/merges","archive_url":"https://api.github.com/repos/basecamp/trix/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/basecamp/trix/downloads","issues_url":"https://api.github.com/repos/basecamp/trix/issues{/number}","pulls_url":"https://api.github.com/repos/basecamp/trix/pulls{/number}","milestones_url":"https://api.github.com/repos/basecamp/trix/milestones{/number}","notifications_url":"https://api.github.com/repos/basecamp/trix/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/basecamp/trix/labels{/name}","releases_url":"https://api.github.com/repos/basecamp/trix/releases{/id}","deployments_url":"https://api.github.com/repos/basecamp/trix/deployments","created_at":"2013-08-01T22:21:30Z","updated_at":"2016-08-04T06:24:52Z","pushed_at":"2016-08-04T16:53:18Z","git_url":"git://github.com/basecamp/trix.git","ssh_url":"git@github.com:basecamp/trix.git","clone_url":"https://github.com/basecamp/trix.git","svn_url":"https://github.com/basecamp/trix","homepage":"https://trix-editor.org/","size":3583,"stargazers_count":7019,"watchers_count":7019,"language":"CoffeeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":266,"mirror_url":null,"open_issues_count":32,"forks":266,"open_issues":32,"watchers":7019,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/basecamp/trix/pulls/263"},"html":{"href":"https://github.com/basecamp/trix/pull/263"},"issue":{"href":"https://api.github.com/repos/basecamp/trix/issues/263"},"comments":{"href":"https://api.github.com/repos/basecamp/trix/issues/263/comments"},"review_comments":{"href":"https://api.github.com/repos/basecamp/trix/pulls/263/comments"},"review_comment":{"href":"https://api.github.com/repos/basecamp/trix/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/basecamp/trix/pulls/263/commits"},"statuses":{"href":"https://api.github.com/repos/basecamp/trix/statuses/ae96675ff4e8de62db84b90782415a22e713db94"}}}}
{"actor":{"display_login":"javan"}}