{"action":"created","issue":{"url":"https://api.github.com/repos/Khan/KaTeX/issues/932","repository_url":"https://api.github.com/repos/Khan/KaTeX","labels_url":"https://api.github.com/repos/Khan/KaTeX/issues/932/labels{/name}","comments_url":"https://api.github.com/repos/Khan/KaTeX/issues/932/comments","events_url":"https://api.github.com/repos/Khan/KaTeX/issues/932/events","html_url":"https://github.com/Khan/KaTeX/issues/932","id":265530064,"node_id":"MDU6SXNzdWUyNjU1MzAwNjQ=","number":932,"title":"dedupe applying styles and attributes in domTree.js","user":{"login":"kevinbarabash","id":1044413,"node_id":"MDQ6VXNlcjEwNDQ0MTM=","avatar_url":"https://avatars3.githubusercontent.com/u/1044413?v=4","gravatar_id":"","url":"https://api.github.com/users/kevinbarabash","html_url":"https://github.com/kevinbarabash","followers_url":"https://api.github.com/users/kevinbarabash/followers","following_url":"https://api.github.com/users/kevinbarabash/following{/other_user}","gists_url":"https://api.github.com/users/kevinbarabash/gists{/gist_id}","starred_url":"https://api.github.com/users/kevinbarabash/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevinbarabash/subscriptions","organizations_url":"https://api.github.com/users/kevinbarabash/orgs","repos_url":"https://api.github.com/users/kevinbarabash/repos","events_url":"https://api.github.com/users/kevinbarabash/events{/privacy}","received_events_url":"https://api.github.com/users/kevinbarabash/received_events","type":"User","site_admin":false},"labels":[{"id":689246764,"node_id":"MDU6TGFiZWw2ODkyNDY3NjQ=","url":"https://api.github.com/repos/Khan/KaTeX/labels/code%20cleanup","name":"code cleanup","color":"c5def5","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-10-14T22:54:33Z","updated_at":"2018-07-28T03:20:45Z","closed_at":"2018-07-28T03:20:45Z","author_association":"MEMBER","body":"We have some duplicate code in domTree.js, e.g.\r\n```\r\n// Apply inline styles\r\n        for (const style in this.style) {\r\n            if (Object.prototype.hasOwnProperty.call(this.style, style)) {\r\n                span.style[style] = this.style[style];\r\n            }\r\n        }\r\n\r\n        // Apply attributes\r\n        for (const attr in this.attributes) {\r\n            if (Object.prototype.hasOwnProperty.call(this.attributes, attr)) {\r\n                span.setAttribute(attr, this.attributes[attr]);\r\n            }\r\n        }\r\n```\r\nappears in a few places.  "},"comment":{"url":"https://api.github.com/repos/Khan/KaTeX/issues/comments/408578998","html_url":"https://github.com/Khan/KaTeX/issues/932#issuecomment-408578998","issue_url":"https://api.github.com/repos/Khan/KaTeX/issues/932","id":408578998,"node_id":"MDEyOklzc3VlQ29tbWVudDQwODU3ODk5OA==","user":{"login":"kevinbarabash","id":1044413,"node_id":"MDQ6VXNlcjEwNDQ0MTM=","avatar_url":"https://avatars3.githubusercontent.com/u/1044413?v=4","gravatar_id":"","url":"https://api.github.com/users/kevinbarabash","html_url":"https://github.com/kevinbarabash","followers_url":"https://api.github.com/users/kevinbarabash/followers","following_url":"https://api.github.com/users/kevinbarabash/following{/other_user}","gists_url":"https://api.github.com/users/kevinbarabash/gists{/gist_id}","starred_url":"https://api.github.com/users/kevinbarabash/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevinbarabash/subscriptions","organizations_url":"https://api.github.com/users/kevinbarabash/orgs","repos_url":"https://api.github.com/users/kevinbarabash/repos","events_url":"https://api.github.com/users/kevinbarabash/events{/privacy}","received_events_url":"https://api.github.com/users/kevinbarabash/received_events","type":"User","site_admin":false},"created_at":"2018-07-28T03:20:45Z","updated_at":"2018-07-28T03:20:45Z","author_association":"MEMBER","body":"Addressed in https://github.com/Khan/KaTeX/pull/1305."}}
{"actor":{"display_login":"kevinbarabash"}}