{"action":"created","comment":{"url":"https://api.github.com/repos/moneyadviceservice/webfeeds/pulls/comments/35422783","id":35422783,"diff_hunk":"@@ -0,0 +1,96 @@\n+/**\n+ * # Source Item Toggler.\n+ *\n+ * Requires a component with a wrapping div that has a `data-dough-component=\"SourceItemToggler\"` attribute.\n+ * The application file will spawn an instance of this class for each element it finds on the page.\n+ *\n+ * See test fixture for sample markup - /spec/js/fixtures/SourceItemToggler.html\n+ */\n+\n+/**\n+ * Require from Config\n+ * @param  {object} $                  jQuery\n+ * @param  {object} DoughBaseComponent Dough\n+ * @return {object}                    SourceItemToggler\n+ * @private\n+ */\n+define(['jquery', 'DoughBaseComponent'], function($, DoughBaseComponent) {\n+\n+  'use strict';\n+\n+  var SourceItemTogglerProto,\n+      defaultConfig = {};\n+\n+  function SourceItemToggler($el, config) {\n+    SourceItemToggler.baseConstructor.call(this, $el, config, defaultConfig);\n+  }\n+\n+  SourceItemToggler.componentName = 'SourceItemToggler';\n+\n+  /**\n+   * Inherit from base module, for shared methods and interface\n+   * @type {[type]}\n+   * @private\n+   */\n+  DoughBaseComponent.extend(SourceItemToggler);\n+  SourceItemTogglerProto = SourceItemToggler.prototype;","path":"app/assets/javascripts/modules/SourceItemToggler.js","position":36,"original_position":36,"commit_id":"ade948d9700a00e7da87b25a155ed5660516a487","original_commit_id":"ade948d9700a00e7da87b25a155ed5660516a487","user":{"login":"neoeno","id":1007202,"avatar_url":"https://avatars.githubusercontent.com/u/1007202?v=3","gravatar_id":"","url":"https://api.github.com/users/neoeno","html_url":"https://github.com/neoeno","followers_url":"https://api.github.com/users/neoeno/followers","following_url":"https://api.github.com/users/neoeno/following{/other_user}","gists_url":"https://api.github.com/users/neoeno/gists{/gist_id}","starred_url":"https://api.github.com/users/neoeno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neoeno/subscriptions","organizations_url":"https://api.github.com/users/neoeno/orgs","repos_url":"https://api.github.com/users/neoeno/repos","events_url":"https://api.github.com/users/neoeno/events{/privacy}","received_events_url":"https://api.github.com/users/neoeno/received_events","type":"User","site_admin":false},"body":"I think the new standard is to add a `componentName` too — see https://github.com/moneyadviceservice/rad/blob/master/app/assets/javascripts/modules/ConfirmableForm.js#L37-L39","created_at":"2015-07-24T13:41:38Z","updated_at":"2015-07-24T13:41:38Z","html_url":"https://github.com/moneyadviceservice/webfeeds/pull/92#discussion_r35422783","pull_request_url":"https://api.github.com/repos/moneyadviceservice/webfeeds/pulls/92","_links":{"self":{"href":"https://api.github.com/repos/moneyadviceservice/webfeeds/pulls/comments/35422783"},"html":{"href":"https://github.com/moneyadviceservice/webfeeds/pull/92#discussion_r35422783"},"pull_request":{"href":"https://api.github.com/repos/moneyadviceservice/webfeeds/pulls/92"}}},"pull_request":{"url":"https://api.github.com/repos/moneyadviceservice/webfeeds/pulls/92","id":40774361,"html_url":"https://github.com/moneyadviceservice/webfeeds/pull/92","diff_url":"https://github.com/moneyadviceservice/webfeeds/pull/92.diff","patch_url":"https://github.com/moneyadviceservice/webfeeds/pull/92.patch","issue_url":"https://api.github.com/repos/moneyadviceservice/webfeeds/issues/92","number":92,"state":"open","locked":false,"title":"[WIP] Dynamically select/deselect source items on a feed","user":{"login":"mconnell","id":32398,"avatar_url":"https://avatars.githubusercontent.com/u/32398?v=3","gravatar_id":"","url":"https://api.github.com/users/mconnell","html_url":"https://github.com/mconnell","followers_url":"https://api.github.com/users/mconnell/followers","following_url":"https://api.github.com/users/mconnell/following{/other_user}","gists_url":"https://api.github.com/users/mconnell/gists{/gist_id}","starred_url":"https://api.github.com/users/mconnell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mconnell/subscriptions","organizations_url":"https://api.github.com/users/mconnell/orgs","repos_url":"https://api.github.com/users/mconnell/repos","events_url":"https://api.github.com/users/mconnell/events{/privacy}","received_events_url":"https://api.github.com/users/mconnell/received_events","type":"User","site_admin":false},"body":"This PR changes the way source items are selected for feeds.\r\n\r\nPreviously, you would check a number of checkboxes and then press a save button at the bottom of the page. Now, checking a checkbox will automatically add or remove the source item on the feed.","created_at":"2015-07-24T13:25:55Z","updated_at":"2015-07-24T13:41:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5c0bf7dd909bdceceee5cd9e7ecd70eb0fb5192d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/moneyadviceservice/webfeeds/pulls/92/commits","review_comments_url":"https://api.github.com/repos/moneyadviceservice/webfeeds/pulls/92/comments","review_comment_url":"https://api.github.com/repos/moneyadviceservice/webfeeds/pulls/comments{/number}","comments_url":"https://api.github.com/repos/moneyadviceservice/webfeeds/issues/92/comments","statuses_url":"https://api.github.com/repos/moneyadviceservice/webfeeds/statuses/ade948d9700a00e7da87b25a155ed5660516a487","head":{"label":"moneyadviceservice:ajax_source_item_selection","ref":"ajax_source_item_selection","sha":"ade948d9700a00e7da87b25a155ed5660516a487","user":{"login":"moneyadviceservice","id":2064781,"avatar_url":"https://avatars.githubusercontent.com/u/2064781?v=3","gravatar_id":"","url":"https://api.github.com/users/moneyadviceservice","html_url":"https://github.com/moneyadviceservice","followers_url":"https://api.github.com/users/moneyadviceservice/followers","following_url":"https://api.github.com/users/moneyadviceservice/following{/other_user}","gists_url":"https://api.github.com/users/moneyadviceservice/gists{/gist_id}","starred_url":"https://api.github.com/users/moneyadviceservice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moneyadviceservice/subscriptions","organizations_url":"https://api.github.com/users/moneyadviceservice/orgs","repos_url":"https://api.github.com/users/moneyadviceservice/repos","events_url":"https://api.github.com/users/moneyadviceservice/events{/privacy}","received_events_url":"https://api.github.com/users/moneyadviceservice/received_events","type":"Organization","site_admin":false},"repo":{"id":34719869,"name":"webfeeds","full_name":"moneyadviceservice/webfeeds","owner":{"login":"moneyadviceservice","id":2064781,"avatar_url":"https://avatars.githubusercontent.com/u/2064781?v=3","gravatar_id":"","url":"https://api.github.com/users/moneyadviceservice","html_url":"https://github.com/moneyadviceservice","followers_url":"https://api.github.com/users/moneyadviceservice/followers","following_url":"https://api.github.com/users/moneyadviceservice/following{/other_user}","gists_url":"https://api.github.com/users/moneyadviceservice/gists{/gist_id}","starred_url":"https://api.github.com/users/moneyadviceservice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moneyadviceservice/subscriptions","organizations_url":"https://api.github.com/users/moneyadviceservice/orgs","repos_url":"https://api.github.com/users/moneyadviceservice/repos","events_url":"https://api.github.com/users/moneyadviceservice/events{/privacy}","received_events_url":"https://api.github.com/users/moneyadviceservice/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/moneyadviceservice/webfeeds","description":"","fork":false,"url":"https://api.github.com/repos/moneyadviceservice/webfeeds","forks_url":"https://api.github.com/repos/moneyadviceservice/webfeeds/forks","keys_url":"https://api.github.com/repos/moneyadviceservice/webfeeds/keys{/key_id}","collaborators_url":"https://api.github.com/repos/moneyadviceservice/webfeeds/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/moneyadviceservice/webfeeds/teams","hooks_url":"https://api.github.com/repos/moneyadviceservice/webfeeds/hooks","issue_events_url":"https://api.github.com/repos/moneyadviceservice/webfeeds/issues/events{/number}","events_url":"https://api.github.com/repos/moneyadviceservice/webfeeds/events","assignees_url":"https://api.github.com/repos/moneyadviceservice/webfeeds/assignees{/user}","branches_url":"https://api.github.com/repos/moneyadviceservice/webfeeds/branches{/branch}","tags_url":"https://api.github.com/repos/moneyadviceservice/webfeeds/tags","blobs_url":"https://api.github.com/repos/moneyadviceservice/webfeeds/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/moneyadviceservice/webfeeds/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/moneyadviceservice/webfeeds/git/refs{/sha}","trees_url":"https://api.github.com/repos/moneyadviceservice/webfeeds/git/trees{/sha}","statuses_url":"https://api.github.com/repos/moneyadviceservice/webfeeds/statuses/{sha}","languages_url":"https://api.github.com/repos/moneyadviceservice/webfeeds/languages","stargazers_url":"https://api.github.com/repos/moneyadviceservice/webfeeds/stargazers","contributors_url":"https://api.github.com/repos/moneyadviceservice/webfeeds/contributors","subscribers_url":"https://api.github.com/repos/moneyadviceservice/webfeeds/subscribers","subscription_url":"https://api.github.com/repos/moneyadviceservice/webfeeds/subscription","commits_url":"https://api.github.com/repos/moneyadviceservice/webfeeds/commits{/sha}","git_commits_url":"https://api.github.com/repos/moneyadviceservice/webfeeds/git/commits{/sha}","comments_url":"https://api.github.com/repos/moneyadviceservice/webfeeds/comments{/number}","issue_comment_url":"https://api.github.com/repos/moneyadviceservice/webfeeds/issues/comments{/number}","contents_url":"https://api.github.com/repos/moneyadviceservice/webfeeds/contents/{+path}","compare_url":"https://api.github.com/repos/moneyadviceservice/webfeeds/compare/{base}...{head}","merges_url":"https://api.github.com/repos/moneyadviceservice/webfeeds/merges","archive_url":"https://api.github.com/repos/moneyadviceservice/webfeeds/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/moneyadviceservice/webfeeds/downloads","issues_url":"https://api.github.com/repos/moneyadviceservice/webfeeds/issues{/number}","pulls_url":"https://api.github.com/repos/moneyadviceservice/webfeeds/pulls{/number}","milestones_url":"https://api.github.com/repos/moneyadviceservice/webfeeds/milestones{/number}","notifications_url":"https://api.github.com/repos/moneyadviceservice/webfeeds/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/moneyadviceservice/webfeeds/labels{/name}","releases_url":"https://api.github.com/repos/moneyadviceservice/webfeeds/releases{/id}","created_at":"2015-04-28T08:59:24Z","updated_at":"2015-05-06T09:27:41Z","pushed_at":"2015-07-24T13:26:13Z","git_url":"git://github.com/moneyadviceservice/webfeeds.git","ssh_url":"git@github.com:moneyadviceservice/webfeeds.git","clone_url":"https://github.com/moneyadviceservice/webfeeds.git","svn_url":"https://github.com/moneyadviceservice/webfeeds","homepage":null,"size":33669,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"moneyadviceservice:master","ref":"master","sha":"ef5185860cdff7507109440502e839f875daef11","user":{"login":"moneyadviceservice","id":2064781,"avatar_url":"https://avatars.githubusercontent.com/u/2064781?v=3","gravatar_id":"","url":"https://api.github.com/users/moneyadviceservice","html_url":"https://github.com/moneyadviceservice","followers_url":"https://api.github.com/users/moneyadviceservice/followers","following_url":"https://api.github.com/users/moneyadviceservice/following{/other_user}","gists_url":"https://api.github.com/users/moneyadviceservice/gists{/gist_id}","starred_url":"https://api.github.com/users/moneyadviceservice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moneyadviceservice/subscriptions","organizations_url":"https://api.github.com/users/moneyadviceservice/orgs","repos_url":"https://api.github.com/users/moneyadviceservice/repos","events_url":"https://api.github.com/users/moneyadviceservice/events{/privacy}","received_events_url":"https://api.github.com/users/moneyadviceservice/received_events","type":"Organization","site_admin":false},"repo":{"id":34719869,"name":"webfeeds","full_name":"moneyadviceservice/webfeeds","owner":{"login":"moneyadviceservice","id":2064781,"avatar_url":"https://avatars.githubusercontent.com/u/2064781?v=3","gravatar_id":"","url":"https://api.github.com/users/moneyadviceservice","html_url":"https://github.com/moneyadviceservice","followers_url":"https://api.github.com/users/moneyadviceservice/followers","following_url":"https://api.github.com/users/moneyadviceservice/following{/other_user}","gists_url":"https://api.github.com/users/moneyadviceservice/gists{/gist_id}","starred_url":"https://api.github.com/users/moneyadviceservice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moneyadviceservice/subscriptions","organizations_url":"https://api.github.com/users/moneyadviceservice/orgs","repos_url":"https://api.github.com/users/moneyadviceservice/repos","events_url":"https://api.github.com/users/moneyadviceservice/events{/privacy}","received_events_url":"https://api.github.com/users/moneyadviceservice/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/moneyadviceservice/webfeeds","description":"","fork":false,"url":"https://api.github.com/repos/moneyadviceservice/webfeeds","forks_url":"https://api.github.com/repos/moneyadviceservice/webfeeds/forks","keys_url":"https://api.github.com/repos/moneyadviceservice/webfeeds/keys{/key_id}","collaborators_url":"https://api.github.com/repos/moneyadviceservice/webfeeds/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/moneyadviceservice/webfeeds/teams","hooks_url":"https://api.github.com/repos/moneyadviceservice/webfeeds/hooks","issue_events_url":"https://api.github.com/repos/moneyadviceservice/webfeeds/issues/events{/number}","events_url":"https://api.github.com/repos/moneyadviceservice/webfeeds/events","assignees_url":"https://api.github.com/repos/moneyadviceservice/webfeeds/assignees{/user}","branches_url":"https://api.github.com/repos/moneyadviceservice/webfeeds/branches{/branch}","tags_url":"https://api.github.com/repos/moneyadviceservice/webfeeds/tags","blobs_url":"https://api.github.com/repos/moneyadviceservice/webfeeds/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/moneyadviceservice/webfeeds/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/moneyadviceservice/webfeeds/git/refs{/sha}","trees_url":"https://api.github.com/repos/moneyadviceservice/webfeeds/git/trees{/sha}","statuses_url":"https://api.github.com/repos/moneyadviceservice/webfeeds/statuses/{sha}","languages_url":"https://api.github.com/repos/moneyadviceservice/webfeeds/languages","stargazers_url":"https://api.github.com/repos/moneyadviceservice/webfeeds/stargazers","contributors_url":"https://api.github.com/repos/moneyadviceservice/webfeeds/contributors","subscribers_url":"https://api.github.com/repos/moneyadviceservice/webfeeds/subscribers","subscription_url":"https://api.github.com/repos/moneyadviceservice/webfeeds/subscription","commits_url":"https://api.github.com/repos/moneyadviceservice/webfeeds/commits{/sha}","git_commits_url":"https://api.github.com/repos/moneyadviceservice/webfeeds/git/commits{/sha}","comments_url":"https://api.github.com/repos/moneyadviceservice/webfeeds/comments{/number}","issue_comment_url":"https://api.github.com/repos/moneyadviceservice/webfeeds/issues/comments{/number}","contents_url":"https://api.github.com/repos/moneyadviceservice/webfeeds/contents/{+path}","compare_url":"https://api.github.com/repos/moneyadviceservice/webfeeds/compare/{base}...{head}","merges_url":"https://api.github.com/repos/moneyadviceservice/webfeeds/merges","archive_url":"https://api.github.com/repos/moneyadviceservice/webfeeds/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/moneyadviceservice/webfeeds/downloads","issues_url":"https://api.github.com/repos/moneyadviceservice/webfeeds/issues{/number}","pulls_url":"https://api.github.com/repos/moneyadviceservice/webfeeds/pulls{/number}","milestones_url":"https://api.github.com/repos/moneyadviceservice/webfeeds/milestones{/number}","notifications_url":"https://api.github.com/repos/moneyadviceservice/webfeeds/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/moneyadviceservice/webfeeds/labels{/name}","releases_url":"https://api.github.com/repos/moneyadviceservice/webfeeds/releases{/id}","created_at":"2015-04-28T08:59:24Z","updated_at":"2015-05-06T09:27:41Z","pushed_at":"2015-07-24T13:26:13Z","git_url":"git://github.com/moneyadviceservice/webfeeds.git","ssh_url":"git@github.com:moneyadviceservice/webfeeds.git","clone_url":"https://github.com/moneyadviceservice/webfeeds.git","svn_url":"https://github.com/moneyadviceservice/webfeeds","homepage":null,"size":33669,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/moneyadviceservice/webfeeds/pulls/92"},"html":{"href":"https://github.com/moneyadviceservice/webfeeds/pull/92"},"issue":{"href":"https://api.github.com/repos/moneyadviceservice/webfeeds/issues/92"},"comments":{"href":"https://api.github.com/repos/moneyadviceservice/webfeeds/issues/92/comments"},"review_comments":{"href":"https://api.github.com/repos/moneyadviceservice/webfeeds/pulls/92/comments"},"review_comment":{"href":"https://api.github.com/repos/moneyadviceservice/webfeeds/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/moneyadviceservice/webfeeds/pulls/92/commits"},"statuses":{"href":"https://api.github.com/repos/moneyadviceservice/webfeeds/statuses/ade948d9700a00e7da87b25a155ed5660516a487"}}}}