{"action":"created","comment":{"url":"https://api.github.com/repos/PaulAvery/node-mithril-mdl/pulls/comments/42851442","id":42851442,"diff_hunk":"@@ -20,7 +20,14 @@ export default function attributes({id, ripple, primary, primaryDark, active, di\n \tif(primary) attr.class.push('mdl-color--primary');\n \tif(primaryDark) attr.class.push('mdl-color--primary-dark');\n \tif(shadow) attr.class.push(`mdl-shadow--${shadow}dp`);\n-\tif(arguments[0].class) attr.class.push(arguments[0].class);\n+\tif(color) attr.class.push(`mdl-color--${color}`);\n+\tif(textColor) attr.class.push(`mdl-color-text--${textColor}`);\n+\n+\tlet classArg = arguments[0].class;\n+\tif(classArg) {\n+\t\tif(typeof(classArg) === 'string') attr.class.push(classArg);","path":"src/attributes.js","position":19,"original_position":19,"commit_id":"510e5b263e3cca396f0986035c755ee242d43069","original_commit_id":"510e5b263e3cca396f0986035c755ee242d43069","user":{"login":"PaulAvery","id":5328822,"avatar_url":"https://avatars.githubusercontent.com/u/5328822?v=3","gravatar_id":"","url":"https://api.github.com/users/PaulAvery","html_url":"https://github.com/PaulAvery","followers_url":"https://api.github.com/users/PaulAvery/followers","following_url":"https://api.github.com/users/PaulAvery/following{/other_user}","gists_url":"https://api.github.com/users/PaulAvery/gists{/gist_id}","starred_url":"https://api.github.com/users/PaulAvery/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PaulAvery/subscriptions","organizations_url":"https://api.github.com/users/PaulAvery/orgs","repos_url":"https://api.github.com/users/PaulAvery/repos","events_url":"https://api.github.com/users/PaulAvery/events{/privacy}","received_events_url":"https://api.github.com/users/PaulAvery/received_events","type":"User","site_admin":false},"body":"If else please with braces. Should really add the linting rules for that at some point.","created_at":"2015-10-23T10:27:30Z","updated_at":"2015-10-23T10:27:30Z","html_url":"https://github.com/PaulAvery/node-mithril-mdl/pull/7#discussion_r42851442","pull_request_url":"https://api.github.com/repos/PaulAvery/node-mithril-mdl/pulls/7","_links":{"self":{"href":"https://api.github.com/repos/PaulAvery/node-mithril-mdl/pulls/comments/42851442"},"html":{"href":"https://github.com/PaulAvery/node-mithril-mdl/pull/7#discussion_r42851442"},"pull_request":{"href":"https://api.github.com/repos/PaulAvery/node-mithril-mdl/pulls/7"}}},"pull_request":{"url":"https://api.github.com/repos/PaulAvery/node-mithril-mdl/pulls/7","id":48551089,"html_url":"https://github.com/PaulAvery/node-mithril-mdl/pull/7","diff_url":"https://github.com/PaulAvery/node-mithril-mdl/pull/7.diff","patch_url":"https://github.com/PaulAvery/node-mithril-mdl/pull/7.patch","issue_url":"https://api.github.com/repos/PaulAvery/node-mithril-mdl/issues/7","number":7,"state":"open","locked":false,"title":"Add support for color and other attributes","user":{"login":"boazy","id":1224667,"avatar_url":"https://avatars.githubusercontent.com/u/1224667?v=3","gravatar_id":"","url":"https://api.github.com/users/boazy","html_url":"https://github.com/boazy","followers_url":"https://api.github.com/users/boazy/followers","following_url":"https://api.github.com/users/boazy/following{/other_user}","gists_url":"https://api.github.com/users/boazy/gists{/gist_id}","starred_url":"https://api.github.com/users/boazy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/boazy/subscriptions","organizations_url":"https://api.github.com/users/boazy/orgs","repos_url":"https://api.github.com/users/boazy/repos","events_url":"https://api.github.com/users/boazy/events{/privacy}","received_events_url":"https://api.github.com/users/boazy/received_events","type":"User","site_admin":false},"body":"## Added attributes ##\r\n\r\n* color (custom colors from the MDL palette besides prmary and primary dark)\r\n* is-casting-shadow for LayoutHeader\r\n* more than one custom CSS class (class attribute can be an array)\r\n\r\n## Remarks ##\r\nThis pull request changes the 'color' arugment on Button to 'colored' (just like the real MDL attribute name) to avoid conflict with the newly added color attribute.","created_at":"2015-10-23T07:51:01Z","updated_at":"2015-10-23T10:27:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a1aa26d85872057d87a3120ff3472bfcc7799f75","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/PaulAvery/node-mithril-mdl/pulls/7/commits","review_comments_url":"https://api.github.com/repos/PaulAvery/node-mithril-mdl/pulls/7/comments","review_comment_url":"https://api.github.com/repos/PaulAvery/node-mithril-mdl/pulls/comments{/number}","comments_url":"https://api.github.com/repos/PaulAvery/node-mithril-mdl/issues/7/comments","statuses_url":"https://api.github.com/repos/PaulAvery/node-mithril-mdl/statuses/510e5b263e3cca396f0986035c755ee242d43069","head":{"label":"boazy:add-attributes","ref":"add-attributes","sha":"510e5b263e3cca396f0986035c755ee242d43069","user":{"login":"boazy","id":1224667,"avatar_url":"https://avatars.githubusercontent.com/u/1224667?v=3","gravatar_id":"","url":"https://api.github.com/users/boazy","html_url":"https://github.com/boazy","followers_url":"https://api.github.com/users/boazy/followers","following_url":"https://api.github.com/users/boazy/following{/other_user}","gists_url":"https://api.github.com/users/boazy/gists{/gist_id}","starred_url":"https://api.github.com/users/boazy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/boazy/subscriptions","organizations_url":"https://api.github.com/users/boazy/orgs","repos_url":"https://api.github.com/users/boazy/repos","events_url":"https://api.github.com/users/boazy/events{/privacy}","received_events_url":"https://api.github.com/users/boazy/received_events","type":"User","site_admin":false},"repo":{"id":44794264,"name":"node-mithril-mdl","full_name":"boazy/node-mithril-mdl","owner":{"login":"boazy","id":1224667,"avatar_url":"https://avatars.githubusercontent.com/u/1224667?v=3","gravatar_id":"","url":"https://api.github.com/users/boazy","html_url":"https://github.com/boazy","followers_url":"https://api.github.com/users/boazy/followers","following_url":"https://api.github.com/users/boazy/following{/other_user}","gists_url":"https://api.github.com/users/boazy/gists{/gist_id}","starred_url":"https://api.github.com/users/boazy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/boazy/subscriptions","organizations_url":"https://api.github.com/users/boazy/orgs","repos_url":"https://api.github.com/users/boazy/repos","events_url":"https://api.github.com/users/boazy/events{/privacy}","received_events_url":"https://api.github.com/users/boazy/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/boazy/node-mithril-mdl","description":"Material Design Lite components via mithril.js","fork":true,"url":"https://api.github.com/repos/boazy/node-mithril-mdl","forks_url":"https://api.github.com/repos/boazy/node-mithril-mdl/forks","keys_url":"https://api.github.com/repos/boazy/node-mithril-mdl/keys{/key_id}","collaborators_url":"https://api.github.com/repos/boazy/node-mithril-mdl/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/boazy/node-mithril-mdl/teams","hooks_url":"https://api.github.com/repos/boazy/node-mithril-mdl/hooks","issue_events_url":"https://api.github.com/repos/boazy/node-mithril-mdl/issues/events{/number}","events_url":"https://api.github.com/repos/boazy/node-mithril-mdl/events","assignees_url":"https://api.github.com/repos/boazy/node-mithril-mdl/assignees{/user}","branches_url":"https://api.github.com/repos/boazy/node-mithril-mdl/branches{/branch}","tags_url":"https://api.github.com/repos/boazy/node-mithril-mdl/tags","blobs_url":"https://api.github.com/repos/boazy/node-mithril-mdl/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/boazy/node-mithril-mdl/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/boazy/node-mithril-mdl/git/refs{/sha}","trees_url":"https://api.github.com/repos/boazy/node-mithril-mdl/git/trees{/sha}","statuses_url":"https://api.github.com/repos/boazy/node-mithril-mdl/statuses/{sha}","languages_url":"https://api.github.com/repos/boazy/node-mithril-mdl/languages","stargazers_url":"https://api.github.com/repos/boazy/node-mithril-mdl/stargazers","contributors_url":"https://api.github.com/repos/boazy/node-mithril-mdl/contributors","subscribers_url":"https://api.github.com/repos/boazy/node-mithril-mdl/subscribers","subscription_url":"https://api.github.com/repos/boazy/node-mithril-mdl/subscription","commits_url":"https://api.github.com/repos/boazy/node-mithril-mdl/commits{/sha}","git_commits_url":"https://api.github.com/repos/boazy/node-mithril-mdl/git/commits{/sha}","comments_url":"https://api.github.com/repos/boazy/node-mithril-mdl/comments{/number}","issue_comment_url":"https://api.github.com/repos/boazy/node-mithril-mdl/issues/comments{/number}","contents_url":"https://api.github.com/repos/boazy/node-mithril-mdl/contents/{+path}","compare_url":"https://api.github.com/repos/boazy/node-mithril-mdl/compare/{base}...{head}","merges_url":"https://api.github.com/repos/boazy/node-mithril-mdl/merges","archive_url":"https://api.github.com/repos/boazy/node-mithril-mdl/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/boazy/node-mithril-mdl/downloads","issues_url":"https://api.github.com/repos/boazy/node-mithril-mdl/issues{/number}","pulls_url":"https://api.github.com/repos/boazy/node-mithril-mdl/pulls{/number}","milestones_url":"https://api.github.com/repos/boazy/node-mithril-mdl/milestones{/number}","notifications_url":"https://api.github.com/repos/boazy/node-mithril-mdl/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/boazy/node-mithril-mdl/labels{/name}","releases_url":"https://api.github.com/repos/boazy/node-mithril-mdl/releases{/id}","created_at":"2015-10-23T06:11:14Z","updated_at":"2015-10-23T06:11:14Z","pushed_at":"2015-10-23T09:56:18Z","git_url":"git://github.com/boazy/node-mithril-mdl.git","ssh_url":"git@github.com:boazy/node-mithril-mdl.git","clone_url":"https://github.com/boazy/node-mithril-mdl.git","svn_url":"https://github.com/boazy/node-mithril-mdl","homepage":null,"size":94,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"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":"PaulAvery:master","ref":"master","sha":"b2c39de8e98d3cb7ff746057704eb825586c57e5","user":{"login":"PaulAvery","id":5328822,"avatar_url":"https://avatars.githubusercontent.com/u/5328822?v=3","gravatar_id":"","url":"https://api.github.com/users/PaulAvery","html_url":"https://github.com/PaulAvery","followers_url":"https://api.github.com/users/PaulAvery/followers","following_url":"https://api.github.com/users/PaulAvery/following{/other_user}","gists_url":"https://api.github.com/users/PaulAvery/gists{/gist_id}","starred_url":"https://api.github.com/users/PaulAvery/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PaulAvery/subscriptions","organizations_url":"https://api.github.com/users/PaulAvery/orgs","repos_url":"https://api.github.com/users/PaulAvery/repos","events_url":"https://api.github.com/users/PaulAvery/events{/privacy}","received_events_url":"https://api.github.com/users/PaulAvery/received_events","type":"User","site_admin":false},"repo":{"id":39637666,"name":"node-mithril-mdl","full_name":"PaulAvery/node-mithril-mdl","owner":{"login":"PaulAvery","id":5328822,"avatar_url":"https://avatars.githubusercontent.com/u/5328822?v=3","gravatar_id":"","url":"https://api.github.com/users/PaulAvery","html_url":"https://github.com/PaulAvery","followers_url":"https://api.github.com/users/PaulAvery/followers","following_url":"https://api.github.com/users/PaulAvery/following{/other_user}","gists_url":"https://api.github.com/users/PaulAvery/gists{/gist_id}","starred_url":"https://api.github.com/users/PaulAvery/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PaulAvery/subscriptions","organizations_url":"https://api.github.com/users/PaulAvery/orgs","repos_url":"https://api.github.com/users/PaulAvery/repos","events_url":"https://api.github.com/users/PaulAvery/events{/privacy}","received_events_url":"https://api.github.com/users/PaulAvery/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/PaulAvery/node-mithril-mdl","description":"Material Design Lite components via mithril.js","fork":false,"url":"https://api.github.com/repos/PaulAvery/node-mithril-mdl","forks_url":"https://api.github.com/repos/PaulAvery/node-mithril-mdl/forks","keys_url":"https://api.github.com/repos/PaulAvery/node-mithril-mdl/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PaulAvery/node-mithril-mdl/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PaulAvery/node-mithril-mdl/teams","hooks_url":"https://api.github.com/repos/PaulAvery/node-mithril-mdl/hooks","issue_events_url":"https://api.github.com/repos/PaulAvery/node-mithril-mdl/issues/events{/number}","events_url":"https://api.github.com/repos/PaulAvery/node-mithril-mdl/events","assignees_url":"https://api.github.com/repos/PaulAvery/node-mithril-mdl/assignees{/user}","branches_url":"https://api.github.com/repos/PaulAvery/node-mithril-mdl/branches{/branch}","tags_url":"https://api.github.com/repos/PaulAvery/node-mithril-mdl/tags","blobs_url":"https://api.github.com/repos/PaulAvery/node-mithril-mdl/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PaulAvery/node-mithril-mdl/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PaulAvery/node-mithril-mdl/git/refs{/sha}","trees_url":"https://api.github.com/repos/PaulAvery/node-mithril-mdl/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PaulAvery/node-mithril-mdl/statuses/{sha}","languages_url":"https://api.github.com/repos/PaulAvery/node-mithril-mdl/languages","stargazers_url":"https://api.github.com/repos/PaulAvery/node-mithril-mdl/stargazers","contributors_url":"https://api.github.com/repos/PaulAvery/node-mithril-mdl/contributors","subscribers_url":"https://api.github.com/repos/PaulAvery/node-mithril-mdl/subscribers","subscription_url":"https://api.github.com/repos/PaulAvery/node-mithril-mdl/subscription","commits_url":"https://api.github.com/repos/PaulAvery/node-mithril-mdl/commits{/sha}","git_commits_url":"https://api.github.com/repos/PaulAvery/node-mithril-mdl/git/commits{/sha}","comments_url":"https://api.github.com/repos/PaulAvery/node-mithril-mdl/comments{/number}","issue_comment_url":"https://api.github.com/repos/PaulAvery/node-mithril-mdl/issues/comments{/number}","contents_url":"https://api.github.com/repos/PaulAvery/node-mithril-mdl/contents/{+path}","compare_url":"https://api.github.com/repos/PaulAvery/node-mithril-mdl/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PaulAvery/node-mithril-mdl/merges","archive_url":"https://api.github.com/repos/PaulAvery/node-mithril-mdl/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PaulAvery/node-mithril-mdl/downloads","issues_url":"https://api.github.com/repos/PaulAvery/node-mithril-mdl/issues{/number}","pulls_url":"https://api.github.com/repos/PaulAvery/node-mithril-mdl/pulls{/number}","milestones_url":"https://api.github.com/repos/PaulAvery/node-mithril-mdl/milestones{/number}","notifications_url":"https://api.github.com/repos/PaulAvery/node-mithril-mdl/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PaulAvery/node-mithril-mdl/labels{/name}","releases_url":"https://api.github.com/repos/PaulAvery/node-mithril-mdl/releases{/id}","created_at":"2015-07-24T14:11:52Z","updated_at":"2015-10-20T10:37:21Z","pushed_at":"2015-10-23T09:56:18Z","git_url":"git://github.com/PaulAvery/node-mithril-mdl.git","ssh_url":"git@github.com:PaulAvery/node-mithril-mdl.git","clone_url":"https://github.com/PaulAvery/node-mithril-mdl.git","svn_url":"https://github.com/PaulAvery/node-mithril-mdl","homepage":null,"size":198,"stargazers_count":8,"watchers_count":8,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":1,"forks":3,"open_issues":1,"watchers":8,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/PaulAvery/node-mithril-mdl/pulls/7"},"html":{"href":"https://github.com/PaulAvery/node-mithril-mdl/pull/7"},"issue":{"href":"https://api.github.com/repos/PaulAvery/node-mithril-mdl/issues/7"},"comments":{"href":"https://api.github.com/repos/PaulAvery/node-mithril-mdl/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/PaulAvery/node-mithril-mdl/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/PaulAvery/node-mithril-mdl/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/PaulAvery/node-mithril-mdl/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/PaulAvery/node-mithril-mdl/statuses/510e5b263e3cca396f0986035c755ee242d43069"}}}}