GitHub PullRequestReviewCommentEvent at 2014-07-18 17:26:36
Repository: cilantro
Actor: bruth
Payload: {"action":"created","comment":{"url":"https://api.github.com/repos/cbmi/cilantro/pulls/comments/15122901","id":15122901,"diff_hunk":"@@ -0,0 +1,190 @@\n+/* global define */\n+\n+define([\n+    'underscore',\n+    'backbone',\n+    'marionette',\n+    '../../core',\n+    './base'\n+], function(_, Backbone, Marionette, c, base) {\n+\n+    var SelectionListItem = Marionette.ItemView.extend({\n+        template: function() {},\n+\n+        tagName: 'option',\n+\n+        modelEvents: function() {\n+            return {\n+                'change:selected': 'render'\n+            };\n+        },\n+\n+        onRender: function() {\n+            var label = this.model.get('label');\n+\n+            if (label === '') {\n+                this.$el.text('(empty)');\n+            }\n+            else if (label === 'null') {\n+                this.$el.text('(null)');\n+            }\n+            else {\n+                this.$el.text(label);\n+            }\n+\n+            this.$el.attr('value', this.model.get('value'));\n+            this.$el.attr('selected', this.model.get('selected'));\n+        }\n+    });\n+\n+    // Renders a dropdown of items allowing for selection of a single item\n+    // from the list.\n+    var SingleSelectionList = base.ControlCompositeView.extend({\n+        className: 'selection-list',\n+\n+        itemView: SelectionListItem,\n+\n+        itemViewOptions: function(model) {\n+            return {\n+                model: model\n+            };\n+        },\n+\n+        itemViewContainer: '.items',\n+\n+        template: 'controls/select/list',","path":"src/js/cilantro/ui/controls/select.js","position":55,"original_position":55,"commit_id":"46c71085c297cbc1c6ebf6fb4febf5e82ddad081","original_commit_id":"46c71085c297cbc1c6ebf6fb4febf5e82ddad081","user":{"login":"bruth","id":515142,"avatar_url":"https://avatars.githubusercontent.com/u/515142?","gravatar_id":"304a09daa8db5ccb8c1c0ff2b0c607eb","url":"https://api.github.com/users/bruth","html_url":"https://github.com/bruth","followers_url":"https://api.github.com/users/bruth/followers","following_url":"https://api.github.com/users/bruth/following{/other_user}","gists_url":"https://api.github.com/users/bruth/gists{/gist_id}","starred_url":"https://api.github.com/users/bruth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bruth/subscriptions","organizations_url":"https://api.github.com/users/bruth/orgs","repos_url":"https://api.github.com/users/bruth/repos","events_url":"https://api.github.com/users/bruth/events{/privacy}","received_events_url":"https://api.github.com/users/bruth/received_events","type":"User","site_admin":false},"body":"Move this above `itemView` to keep it next to `className`.","created_at":"2014-07-18T17:26:36Z","updated_at":"2014-07-18T17:26:36Z","html_url":"https://github.com/cbmi/cilantro/pull/643#discussion_r15122901","pull_request_url":"https://api.github.com/repos/cbmi/cilantro/pulls/643","_links":{"self":{"href":"https://api.github.com/repos/cbmi/cilantro/pulls/comments/15122901"},"html":{"href":"https://github.com/cbmi/cilantro/pull/643#discussion_r15122901"},"pull_request":{"href":"https://api.github.com/repos/cbmi/cilantro/pulls/643"}}},"pull_request":{"url":"https://api.github.com/repos/cbmi/cilantro/pulls/643","id":18180221,"html_url":"https://github.com/cbmi/cilantro/pull/643","diff_url":"https://github.com/cbmi/cilantro/pull/643.diff","patch_url":"https://github.com/cbmi/cilantro/pull/643.patch","issue_url":"https://api.github.com/repos/cbmi/cilantro/issues/643","number":643,"state":"open","title":"Port cilantro/ui/controls/* to JavaScript","user":{"login":"naegelyd","id":3911912,"avatar_url":"https://avatars.githubusercontent.com/u/3911912?","gravatar_id":"f2b6f2cec914521893ab3f5de23d1a4c","url":"https://api.github.com/users/naegelyd","html_url":"https://github.com/naegelyd","followers_url":"https://api.github.com/users/naegelyd/followers","following_url":"https://api.github.com/users/naegelyd/following{/other_user}","gists_url":"https://api.github.com/users/naegelyd/gists{/gist_id}","starred_url":"https://api.github.com/users/naegelyd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/naegelyd/subscriptions","organizations_url":"https://api.github.com/users/naegelyd/orgs","repos_url":"https://api.github.com/users/naegelyd/repos","events_url":"https://api.github.com/users/naegelyd/events{/privacy}","received_events_url":"https://api.github.com/users/naegelyd/received_events","type":"User","site_admin":false},"body":"Signed-off-by: Don Naegely <naegelyd@gmail.com>","created_at":"2014-07-09T19:09:44Z","updated_at":"2014-07-18T17:26:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3f8d323a86a9661a54f36d7e47228ca9246a578d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/cbmi/cilantro/pulls/643/commits","review_comments_url":"https://api.github.com/repos/cbmi/cilantro/pulls/643/comments","review_comment_url":"https://api.github.com/repos/cbmi/cilantro/pulls/comments/{number}","comments_url":"https://api.github.com/repos/cbmi/cilantro/issues/643/comments","statuses_url":"https://api.github.com/repos/cbmi/cilantro/statuses/46c71085c297cbc1c6ebf6fb4febf5e82ddad081","head":{"label":"cbmi:controls-to-js","ref":"controls-to-js","sha":"46c71085c297cbc1c6ebf6fb4febf5e82ddad081","user":{"login":"cbmi","id":709892,"avatar_url":"https://avatars.githubusercontent.com/u/709892?","gravatar_id":"641d4c98abc8fca6731ad9ada22c6d61","url":"https://api.github.com/users/cbmi","html_url":"https://github.com/cbmi","followers_url":"https://api.github.com/users/cbmi/followers","following_url":"https://api.github.com/users/cbmi/following{/other_user}","gists_url":"https://api.github.com/users/cbmi/gists{/gist_id}","starred_url":"https://api.github.com/users/cbmi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cbmi/subscriptions","organizations_url":"https://api.github.com/users/cbmi/orgs","repos_url":"https://api.github.com/users/cbmi/repos","events_url":"https://api.github.com/users/cbmi/events{/privacy}","received_events_url":"https://api.github.com/users/cbmi/received_events","type":"Organization","site_admin":false},"repo":{"id":2338281,"name":"cilantro","full_name":"cbmi/cilantro","owner":{"login":"cbmi","id":709892,"avatar_url":"https://avatars.githubusercontent.com/u/709892?","gravatar_id":"641d4c98abc8fca6731ad9ada22c6d61","url":"https://api.github.com/users/cbmi","html_url":"https://github.com/cbmi","followers_url":"https://api.github.com/users/cbmi/followers","following_url":"https://api.github.com/users/cbmi/following{/other_user}","gists_url":"https://api.github.com/users/cbmi/gists{/gist_id}","starred_url":"https://api.github.com/users/cbmi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cbmi/subscriptions","organizations_url":"https://api.github.com/users/cbmi/orgs","repos_url":"https://api.github.com/users/cbmi/repos","events_url":"https://api.github.com/users/cbmi/events{/privacy}","received_events_url":"https://api.github.com/users/cbmi/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cbmi/cilantro","description":"Official client for The Harvest Stack","fork":false,"url":"https://api.github.com/repos/cbmi/cilantro","forks_url":"https://api.github.com/repos/cbmi/cilantro/forks","keys_url":"https://api.github.com/repos/cbmi/cilantro/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cbmi/cilantro/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cbmi/cilantro/teams","hooks_url":"https://api.github.com/repos/cbmi/cilantro/hooks","issue_events_url":"https://api.github.com/repos/cbmi/cilantro/issues/events{/number}","events_url":"https://api.github.com/repos/cbmi/cilantro/events","assignees_url":"https://api.github.com/repos/cbmi/cilantro/assignees{/user}","branches_url":"https://api.github.com/repos/cbmi/cilantro/branches{/branch}","tags_url":"https://api.github.com/repos/cbmi/cilantro/tags","blobs_url":"https://api.github.com/repos/cbmi/cilantro/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cbmi/cilantro/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cbmi/cilantro/git/refs{/sha}","trees_url":"https://api.github.com/repos/cbmi/cilantro/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cbmi/cilantro/statuses/{sha}","languages_url":"https://api.github.com/repos/cbmi/cilantro/languages","stargazers_url":"https://api.github.com/repos/cbmi/cilantro/stargazers","contributors_url":"https://api.github.com/repos/cbmi/cilantro/contributors","subscribers_url":"https://api.github.com/repos/cbmi/cilantro/subscribers","subscription_url":"https://api.github.com/repos/cbmi/cilantro/subscription","commits_url":"https://api.github.com/repos/cbmi/cilantro/commits{/sha}","git_commits_url":"https://api.github.com/repos/cbmi/cilantro/git/commits{/sha}","comments_url":"https://api.github.com/repos/cbmi/cilantro/comments{/number}","issue_comment_url":"https://api.github.com/repos/cbmi/cilantro/issues/comments/{number}","contents_url":"https://api.github.com/repos/cbmi/cilantro/contents/{+path}","compare_url":"https://api.github.com/repos/cbmi/cilantro/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cbmi/cilantro/merges","archive_url":"https://api.github.com/repos/cbmi/cilantro/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cbmi/cilantro/downloads","issues_url":"https://api.github.com/repos/cbmi/cilantro/issues{/number}","pulls_url":"https://api.github.com/repos/cbmi/cilantro/pulls{/number}","milestones_url":"https://api.github.com/repos/cbmi/cilantro/milestones{/number}","notifications_url":"https://api.github.com/repos/cbmi/cilantro/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cbmi/cilantro/labels{/name}","releases_url":"https://api.github.com/repos/cbmi/cilantro/releases{/id}","created_at":"2011-09-07T00:01:54Z","updated_at":"2014-07-01T16:11:02Z","pushed_at":"2014-07-16T13:29:57Z","git_url":"git://github.com/cbmi/cilantro.git","ssh_url":"git@github.com:cbmi/cilantro.git","clone_url":"https://github.com/cbmi/cilantro.git","svn_url":"https://github.com/cbmi/cilantro","homepage":"http://cilantro.harvest.io","size":26869,"stargazers_count":17,"watchers_count":17,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"forks_count":8,"mirror_url":null,"open_issues_count":51,"forks":8,"open_issues":51,"watchers":17,"default_branch":"master"}},"base":{"label":"cbmi:master","ref":"master","sha":"c29ee4b55c539bd450c6ef3c9ba006fd588127ca","user":{"login":"cbmi","id":709892,"avatar_url":"https://avatars.githubusercontent.com/u/709892?","gravatar_id":"641d4c98abc8fca6731ad9ada22c6d61","url":"https://api.github.com/users/cbmi","html_url":"https://github.com/cbmi","followers_url":"https://api.github.com/users/cbmi/followers","following_url":"https://api.github.com/users/cbmi/following{/other_user}","gists_url":"https://api.github.com/users/cbmi/gists{/gist_id}","starred_url":"https://api.github.com/users/cbmi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cbmi/subscriptions","organizations_url":"https://api.github.com/users/cbmi/orgs","repos_url":"https://api.github.com/users/cbmi/repos","events_url":"https://api.github.com/users/cbmi/events{/privacy}","received_events_url":"https://api.github.com/users/cbmi/received_events","type":"Organization","site_admin":false},"repo":{"id":2338281,"name":"cilantro","full_name":"cbmi/cilantro","owner":{"login":"cbmi","id":709892,"avatar_url":"https://avatars.githubusercontent.com/u/709892?","gravatar_id":"641d4c98abc8fca6731ad9ada22c6d61","url":"https://api.github.com/users/cbmi","html_url":"https://github.com/cbmi","followers_url":"https://api.github.com/users/cbmi/followers","following_url":"https://api.github.com/users/cbmi/following{/other_user}","gists_url":"https://api.github.com/users/cbmi/gists{/gist_id}","starred_url":"https://api.github.com/users/cbmi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cbmi/subscriptions","organizations_url":"https://api.github.com/users/cbmi/orgs","repos_url":"https://api.github.com/users/cbmi/repos","events_url":"https://api.github.com/users/cbmi/events{/privacy}","received_events_url":"https://api.github.com/users/cbmi/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cbmi/cilantro","description":"Official client for The Harvest Stack","fork":false,"url":"https://api.github.com/repos/cbmi/cilantro","forks_url":"https://api.github.com/repos/cbmi/cilantro/forks","keys_url":"https://api.github.com/repos/cbmi/cilantro/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cbmi/cilantro/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cbmi/cilantro/teams","hooks_url":"https://api.github.com/repos/cbmi/cilantro/hooks","issue_events_url":"https://api.github.com/repos/cbmi/cilantro/issues/events{/number}","events_url":"https://api.github.com/repos/cbmi/cilantro/events","assignees_url":"https://api.github.com/repos/cbmi/cilantro/assignees{/user}","branches_url":"https://api.github.com/repos/cbmi/cilantro/branches{/branch}","tags_url":"https://api.github.com/repos/cbmi/cilantro/tags","blobs_url":"https://api.github.com/repos/cbmi/cilantro/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cbmi/cilantro/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cbmi/cilantro/git/refs{/sha}","trees_url":"https://api.github.com/repos/cbmi/cilantro/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cbmi/cilantro/statuses/{sha}","languages_url":"https://api.github.com/repos/cbmi/cilantro/languages","stargazers_url":"https://api.github.com/repos/cbmi/cilantro/stargazers","contributors_url":"https://api.github.com/repos/cbmi/cilantro/contributors","subscribers_url":"https://api.github.com/repos/cbmi/cilantro/subscribers","subscription_url":"https://api.github.com/repos/cbmi/cilantro/subscription","commits_url":"https://api.github.com/repos/cbmi/cilantro/commits{/sha}","git_commits_url":"https://api.github.com/repos/cbmi/cilantro/git/commits{/sha}","comments_url":"https://api.github.com/repos/cbmi/cilantro/comments{/number}","issue_comment_url":"https://api.github.com/repos/cbmi/cilantro/issues/comments/{number}","contents_url":"https://api.github.com/repos/cbmi/cilantro/contents/{+path}","compare_url":"https://api.github.com/repos/cbmi/cilantro/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cbmi/cilantro/merges","archive_url":"https://api.github.com/repos/cbmi/cilantro/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cbmi/cilantro/downloads","issues_url":"https://api.github.com/repos/cbmi/cilantro/issues{/number}","pulls_url":"https://api.github.com/repos/cbmi/cilantro/pulls{/number}","milestones_url":"https://api.github.com/repos/cbmi/cilantro/milestones{/number}","notifications_url":"https://api.github.com/repos/cbmi/cilantro/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cbmi/cilantro/labels{/name}","releases_url":"https://api.github.com/repos/cbmi/cilantro/releases{/id}","created_at":"2011-09-07T00:01:54Z","updated_at":"2014-07-01T16:11:02Z","pushed_at":"2014-07-16T13:29:57Z","git_url":"git://github.com/cbmi/cilantro.git","ssh_url":"git@github.com:cbmi/cilantro.git","clone_url":"https://github.com/cbmi/cilantro.git","svn_url":"https://github.com/cbmi/cilantro","homepage":"http://cilantro.harvest.io","size":26869,"stargazers_count":17,"watchers_count":17,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"forks_count":8,"mirror_url":null,"open_issues_count":51,"forks":8,"open_issues":51,"watchers":17,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cbmi/cilantro/pulls/643"},"html":{"href":"https://github.com/cbmi/cilantro/pull/643"},"issue":{"href":"https://api.github.com/repos/cbmi/cilantro/issues/643"},"comments":{"href":"https://api.github.com/repos/cbmi/cilantro/issues/643/comments"},"review_comments":{"href":"https://api.github.com/repos/cbmi/cilantro/pulls/643/comments"},"review_comment":{"href":"https://api.github.com/repos/cbmi/cilantro/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/cbmi/cilantro/pulls/643/commits"},"statuses":{"href":"https://api.github.com/repos/cbmi/cilantro/statuses/46c71085c297cbc1c6ebf6fb4febf5e82ddad081"}}}}