{"action":"created","comment":{"url":"https://api.github.com/repos/ooyala/html5-skin/pulls/comments/47299042","id":47299042,"diff_hunk":"@@ -0,0 +1,12 @@\n+var React = require('react');\n+var Utils = require('../components/utils');\n+\n+var TruncateTextMixin = {\n+  truncateText: function(node, text) {\n+    // CSS doesn't support \"truncate N lines\" so we need to do DOM width\n+    // calculations to figure out where to truncate the description\n+    var descriptionNode = React.findDOMNode(node);\n+    descriptionNode.innerHTML = Utils.truncateTextToWidth(descriptionNode, text);\n+  }\n+};\n+module.exports = TruncateTextMixin;","path":"js/mixins/truncateTextMixin.js","position":12,"original_position":12,"commit_id":"f3e9cbe63e481f851d7d8215fdd2b6673f3fbf38","original_commit_id":"f3e9cbe63e481f851d7d8215fdd2b6673f3fbf38","user":{"login":"chibzu","id":4230476,"avatar_url":"https://avatars.githubusercontent.com/u/4230476?v=3","gravatar_id":"","url":"https://api.github.com/users/chibzu","html_url":"https://github.com/chibzu","followers_url":"https://api.github.com/users/chibzu/followers","following_url":"https://api.github.com/users/chibzu/following{/other_user}","gists_url":"https://api.github.com/users/chibzu/gists{/gist_id}","starred_url":"https://api.github.com/users/chibzu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chibzu/subscriptions","organizations_url":"https://api.github.com/users/chibzu/orgs","repos_url":"https://api.github.com/users/chibzu/repos","events_url":"https://api.github.com/users/chibzu/events{/privacy}","received_events_url":"https://api.github.com/users/chibzu/received_events","type":"User","site_admin":false},"body":"What's the benefit here? Not sure I see the benefit in saving one line of code for another layer of abstraction/misdirection.","created_at":"2015-12-10T22:50:53Z","updated_at":"2015-12-10T22:50:53Z","html_url":"https://github.com/ooyala/html5-skin/pull/248#discussion_r47299042","pull_request_url":"https://api.github.com/repos/ooyala/html5-skin/pulls/248","_links":{"self":{"href":"https://api.github.com/repos/ooyala/html5-skin/pulls/comments/47299042"},"html":{"href":"https://github.com/ooyala/html5-skin/pull/248#discussion_r47299042"},"pull_request":{"href":"https://api.github.com/repos/ooyala/html5-skin/pulls/248"}}},"pull_request":{"url":"https://api.github.com/repos/ooyala/html5-skin/pulls/248","id":52987665,"html_url":"https://github.com/ooyala/html5-skin/pull/248","diff_url":"https://github.com/ooyala/html5-skin/pull/248.diff","patch_url":"https://github.com/ooyala/html5-skin/pull/248.patch","issue_url":"https://api.github.com/repos/ooyala/html5-skin/issues/248","number":248,"state":"open","locked":false,"title":"Convert Screens to Sass","user":{"login":"mistermendez","id":3091495,"avatar_url":"https://avatars.githubusercontent.com/u/3091495?v=3","gravatar_id":"","url":"https://api.github.com/users/mistermendez","html_url":"https://github.com/mistermendez","followers_url":"https://api.github.com/users/mistermendez/followers","following_url":"https://api.github.com/users/mistermendez/following{/other_user}","gists_url":"https://api.github.com/users/mistermendez/gists{/gist_id}","starred_url":"https://api.github.com/users/mistermendez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mistermendez/subscriptions","organizations_url":"https://api.github.com/users/mistermendez/orgs","repos_url":"https://api.github.com/users/mistermendez/repos","events_url":"https://api.github.com/users/mistermendez/events{/privacy}","received_events_url":"https://api.github.com/users/mistermendez/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-12-08T14:35:23Z","updated_at":"2015-12-10T22:50:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1ce4e92faa601155f4ffcde66373d3e7712d8e5f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ooyala/html5-skin/pulls/248/commits","review_comments_url":"https://api.github.com/repos/ooyala/html5-skin/pulls/248/comments","review_comment_url":"https://api.github.com/repos/ooyala/html5-skin/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ooyala/html5-skin/issues/248/comments","statuses_url":"https://api.github.com/repos/ooyala/html5-skin/statuses/f3e9cbe63e481f851d7d8215fdd2b6673f3fbf38","head":{"label":"ooyala:pbw-3634-screens","ref":"pbw-3634-screens","sha":"f3e9cbe63e481f851d7d8215fdd2b6673f3fbf38","user":{"login":"ooyala","id":365274,"avatar_url":"https://avatars.githubusercontent.com/u/365274?v=3","gravatar_id":"","url":"https://api.github.com/users/ooyala","html_url":"https://github.com/ooyala","followers_url":"https://api.github.com/users/ooyala/followers","following_url":"https://api.github.com/users/ooyala/following{/other_user}","gists_url":"https://api.github.com/users/ooyala/gists{/gist_id}","starred_url":"https://api.github.com/users/ooyala/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ooyala/subscriptions","organizations_url":"https://api.github.com/users/ooyala/orgs","repos_url":"https://api.github.com/users/ooyala/repos","events_url":"https://api.github.com/users/ooyala/events{/privacy}","received_events_url":"https://api.github.com/users/ooyala/received_events","type":"Organization","site_admin":false},"repo":{"id":32830770,"name":"html5-skin","full_name":"ooyala/html5-skin","owner":{"login":"ooyala","id":365274,"avatar_url":"https://avatars.githubusercontent.com/u/365274?v=3","gravatar_id":"","url":"https://api.github.com/users/ooyala","html_url":"https://github.com/ooyala","followers_url":"https://api.github.com/users/ooyala/followers","following_url":"https://api.github.com/users/ooyala/following{/other_user}","gists_url":"https://api.github.com/users/ooyala/gists{/gist_id}","starred_url":"https://api.github.com/users/ooyala/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ooyala/subscriptions","organizations_url":"https://api.github.com/users/ooyala/orgs","repos_url":"https://api.github.com/users/ooyala/repos","events_url":"https://api.github.com/users/ooyala/events{/privacy}","received_events_url":"https://api.github.com/users/ooyala/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ooyala/html5-skin","description":"","fork":false,"url":"https://api.github.com/repos/ooyala/html5-skin","forks_url":"https://api.github.com/repos/ooyala/html5-skin/forks","keys_url":"https://api.github.com/repos/ooyala/html5-skin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ooyala/html5-skin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ooyala/html5-skin/teams","hooks_url":"https://api.github.com/repos/ooyala/html5-skin/hooks","issue_events_url":"https://api.github.com/repos/ooyala/html5-skin/issues/events{/number}","events_url":"https://api.github.com/repos/ooyala/html5-skin/events","assignees_url":"https://api.github.com/repos/ooyala/html5-skin/assignees{/user}","branches_url":"https://api.github.com/repos/ooyala/html5-skin/branches{/branch}","tags_url":"https://api.github.com/repos/ooyala/html5-skin/tags","blobs_url":"https://api.github.com/repos/ooyala/html5-skin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ooyala/html5-skin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ooyala/html5-skin/git/refs{/sha}","trees_url":"https://api.github.com/repos/ooyala/html5-skin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ooyala/html5-skin/statuses/{sha}","languages_url":"https://api.github.com/repos/ooyala/html5-skin/languages","stargazers_url":"https://api.github.com/repos/ooyala/html5-skin/stargazers","contributors_url":"https://api.github.com/repos/ooyala/html5-skin/contributors","subscribers_url":"https://api.github.com/repos/ooyala/html5-skin/subscribers","subscription_url":"https://api.github.com/repos/ooyala/html5-skin/subscription","commits_url":"https://api.github.com/repos/ooyala/html5-skin/commits{/sha}","git_commits_url":"https://api.github.com/repos/ooyala/html5-skin/git/commits{/sha}","comments_url":"https://api.github.com/repos/ooyala/html5-skin/comments{/number}","issue_comment_url":"https://api.github.com/repos/ooyala/html5-skin/issues/comments{/number}","contents_url":"https://api.github.com/repos/ooyala/html5-skin/contents/{+path}","compare_url":"https://api.github.com/repos/ooyala/html5-skin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ooyala/html5-skin/merges","archive_url":"https://api.github.com/repos/ooyala/html5-skin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ooyala/html5-skin/downloads","issues_url":"https://api.github.com/repos/ooyala/html5-skin/issues{/number}","pulls_url":"https://api.github.com/repos/ooyala/html5-skin/pulls{/number}","milestones_url":"https://api.github.com/repos/ooyala/html5-skin/milestones{/number}","notifications_url":"https://api.github.com/repos/ooyala/html5-skin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ooyala/html5-skin/labels{/name}","releases_url":"https://api.github.com/repos/ooyala/html5-skin/releases{/id}","created_at":"2015-03-24T23:20:15Z","updated_at":"2015-12-04T21:36:08Z","pushed_at":"2015-12-10T22:23:47Z","git_url":"git://github.com/ooyala/html5-skin.git","ssh_url":"git@github.com:ooyala/html5-skin.git","clone_url":"https://github.com/ooyala/html5-skin.git","svn_url":"https://github.com/ooyala/html5-skin","homepage":null,"size":1340,"stargazers_count":6,"watchers_count":6,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":5,"forks":4,"open_issues":5,"watchers":6,"default_branch":"stable"}},"base":{"label":"ooyala:master","ref":"master","sha":"1c7c05558497d83820b58e91de920f7b14c4f538","user":{"login":"ooyala","id":365274,"avatar_url":"https://avatars.githubusercontent.com/u/365274?v=3","gravatar_id":"","url":"https://api.github.com/users/ooyala","html_url":"https://github.com/ooyala","followers_url":"https://api.github.com/users/ooyala/followers","following_url":"https://api.github.com/users/ooyala/following{/other_user}","gists_url":"https://api.github.com/users/ooyala/gists{/gist_id}","starred_url":"https://api.github.com/users/ooyala/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ooyala/subscriptions","organizations_url":"https://api.github.com/users/ooyala/orgs","repos_url":"https://api.github.com/users/ooyala/repos","events_url":"https://api.github.com/users/ooyala/events{/privacy}","received_events_url":"https://api.github.com/users/ooyala/received_events","type":"Organization","site_admin":false},"repo":{"id":32830770,"name":"html5-skin","full_name":"ooyala/html5-skin","owner":{"login":"ooyala","id":365274,"avatar_url":"https://avatars.githubusercontent.com/u/365274?v=3","gravatar_id":"","url":"https://api.github.com/users/ooyala","html_url":"https://github.com/ooyala","followers_url":"https://api.github.com/users/ooyala/followers","following_url":"https://api.github.com/users/ooyala/following{/other_user}","gists_url":"https://api.github.com/users/ooyala/gists{/gist_id}","starred_url":"https://api.github.com/users/ooyala/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ooyala/subscriptions","organizations_url":"https://api.github.com/users/ooyala/orgs","repos_url":"https://api.github.com/users/ooyala/repos","events_url":"https://api.github.com/users/ooyala/events{/privacy}","received_events_url":"https://api.github.com/users/ooyala/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ooyala/html5-skin","description":"","fork":false,"url":"https://api.github.com/repos/ooyala/html5-skin","forks_url":"https://api.github.com/repos/ooyala/html5-skin/forks","keys_url":"https://api.github.com/repos/ooyala/html5-skin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ooyala/html5-skin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ooyala/html5-skin/teams","hooks_url":"https://api.github.com/repos/ooyala/html5-skin/hooks","issue_events_url":"https://api.github.com/repos/ooyala/html5-skin/issues/events{/number}","events_url":"https://api.github.com/repos/ooyala/html5-skin/events","assignees_url":"https://api.github.com/repos/ooyala/html5-skin/assignees{/user}","branches_url":"https://api.github.com/repos/ooyala/html5-skin/branches{/branch}","tags_url":"https://api.github.com/repos/ooyala/html5-skin/tags","blobs_url":"https://api.github.com/repos/ooyala/html5-skin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ooyala/html5-skin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ooyala/html5-skin/git/refs{/sha}","trees_url":"https://api.github.com/repos/ooyala/html5-skin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ooyala/html5-skin/statuses/{sha}","languages_url":"https://api.github.com/repos/ooyala/html5-skin/languages","stargazers_url":"https://api.github.com/repos/ooyala/html5-skin/stargazers","contributors_url":"https://api.github.com/repos/ooyala/html5-skin/contributors","subscribers_url":"https://api.github.com/repos/ooyala/html5-skin/subscribers","subscription_url":"https://api.github.com/repos/ooyala/html5-skin/subscription","commits_url":"https://api.github.com/repos/ooyala/html5-skin/commits{/sha}","git_commits_url":"https://api.github.com/repos/ooyala/html5-skin/git/commits{/sha}","comments_url":"https://api.github.com/repos/ooyala/html5-skin/comments{/number}","issue_comment_url":"https://api.github.com/repos/ooyala/html5-skin/issues/comments{/number}","contents_url":"https://api.github.com/repos/ooyala/html5-skin/contents/{+path}","compare_url":"https://api.github.com/repos/ooyala/html5-skin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ooyala/html5-skin/merges","archive_url":"https://api.github.com/repos/ooyala/html5-skin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ooyala/html5-skin/downloads","issues_url":"https://api.github.com/repos/ooyala/html5-skin/issues{/number}","pulls_url":"https://api.github.com/repos/ooyala/html5-skin/pulls{/number}","milestones_url":"https://api.github.com/repos/ooyala/html5-skin/milestones{/number}","notifications_url":"https://api.github.com/repos/ooyala/html5-skin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ooyala/html5-skin/labels{/name}","releases_url":"https://api.github.com/repos/ooyala/html5-skin/releases{/id}","created_at":"2015-03-24T23:20:15Z","updated_at":"2015-12-04T21:36:08Z","pushed_at":"2015-12-10T22:23:47Z","git_url":"git://github.com/ooyala/html5-skin.git","ssh_url":"git@github.com:ooyala/html5-skin.git","clone_url":"https://github.com/ooyala/html5-skin.git","svn_url":"https://github.com/ooyala/html5-skin","homepage":null,"size":1340,"stargazers_count":6,"watchers_count":6,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":5,"forks":4,"open_issues":5,"watchers":6,"default_branch":"stable"}},"_links":{"self":{"href":"https://api.github.com/repos/ooyala/html5-skin/pulls/248"},"html":{"href":"https://github.com/ooyala/html5-skin/pull/248"},"issue":{"href":"https://api.github.com/repos/ooyala/html5-skin/issues/248"},"comments":{"href":"https://api.github.com/repos/ooyala/html5-skin/issues/248/comments"},"review_comments":{"href":"https://api.github.com/repos/ooyala/html5-skin/pulls/248/comments"},"review_comment":{"href":"https://api.github.com/repos/ooyala/html5-skin/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ooyala/html5-skin/pulls/248/commits"},"statuses":{"href":"https://api.github.com/repos/ooyala/html5-skin/statuses/f3e9cbe63e481f851d7d8215fdd2b6673f3fbf38"}}}}