{"action":"created","comment":{"url":"https://api.github.com/repos/18F/openFEC-web-app/pulls/comments/44418230","id":44418230,"diff_hunk":"@@ -218,101 +217,145 @@ $(document).ready(function() {\n     var query = {cycle: cycle};\n     var path;\n     switch ($table.attr('data-type')) {\n-      case 'committee-contributor':\n-        path = ['committee', committeeId, 'schedules', 'schedule_a', 'by_contributor'];\n-        tables.initTableDeferred($table, null, path, query, committeeColumns, aggregateCallbacks, {\n-          dom: tables.simpleDOM,\n-          order: [[1, 'desc']],\n-          pagingType: 'simple',\n-          lengthChange: false,\n-          pageLength: 10,\n-          useHideNull: false,\n-          hideEmpty: true\n-        });\n-        break;\n-      case 'contribution-size':\n-        path = ['committee', committeeId, 'schedules', 'schedule_a', 'by_size'];\n-        tables.initTableDeferred($table, null, path, query, sizeColumns, aggregateCallbacks, {\n-          dom: 't',\n-          order: [[1, 'desc']],\n-          pagingType: 'simple',\n-          lengthChange: false,\n-          pageLength: 10,\n-          useHideNull: false,\n-          hideEmpty: true\n-        });\n-        break;\n-      case 'receipts-by-state':\n-        path = ['committee', committeeId, 'schedules', 'schedule_a', 'by_state'];\n-        query = _.extend(query, {per_page: 99, hide_null: true});\n-        tables.initTableDeferred($table, null, path, query, stateColumns, aggregateCallbacks,\n-          _.extend(\n-            {},\n-            tableOpts,\n-            {\n-              dom: 't',\n-              order: [[1, 'desc']],\n-              paging: false,\n-              scrollY: 400,\n-              scrollCollapse: true\n-            }\n-          )\n-        );\n-        events.on('state.map', function(params) {\n-          var $map = $('.state-map');\n-          highlightRowAndState($map, $table, params.state, true);\n+    case 'committee-contributor':\n+      path = ['committee', committeeId, 'schedules', 'schedule_a', 'by_contributor'];\n+      tables.DataTable.defer($table, {\n+        path: path,\n+        query: query,\n+        columns: committeeColumns,\n+        callbacks: aggregateCallbacks,\n+        dom: tables.simpleDOM,\n+        order: [[1, 'desc']],\n+        pagingType: 'simple',\n+        lengthChange: false,\n+        pageLength: 10,\n+        useHideNull: false,\n+        hideEmpty: true\n+      });\n+      break;\n+    case 'contribution-size':\n+      path = ['committee', committeeId, 'schedules', 'schedule_a', 'by_size'];\n+      tables.DataTable.defer($table, {\n+        path: path,\n+        query: query,\n+        columns: sizeColumns,\n+        callbacks: aggregateCallbacks,\n+        dom: 't',\n+        order: [[1, 'desc']],\n+        pagingType: 'simple',\n+        lengthChange: false,\n+        pageLength: 10,\n+        useHideNull: false,\n+        hideEmpty: true\n+      });\n+      break;\n+    case 'receipts-by-state':\n+      path = ['committee', committeeId, 'schedules', 'schedule_a', 'by_state'];\n+      query = _.extend(query, {per_page: 99, hide_null: true});","path":"static/js/pages/committee-single.js","position":95,"original_position":95,"commit_id":"83b191c4ec6fdcb8e45de498b9243b60fb590726","original_commit_id":"83b191c4ec6fdcb8e45de498b9243b60fb590726","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci","html_url":"https://github.com/houndci","followers_url":"https://api.github.com/users/houndci/followers","following_url":"https://api.github.com/users/houndci/following{/other_user}","gists_url":"https://api.github.com/users/houndci/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci/subscriptions","organizations_url":"https://api.github.com/users/houndci/orgs","repos_url":"https://api.github.com/users/houndci/repos","events_url":"https://api.github.com/users/houndci/events{/privacy}","received_events_url":"https://api.github.com/users/houndci/received_events","type":"User","site_admin":false},"body":"Identifier 'per_page' is not in camel case.<br>Identifier 'hide_null' is not in camel case.","created_at":"2015-11-10T15:20:40Z","updated_at":"2015-11-10T15:20:40Z","html_url":"https://github.com/18F/openFEC-web-app/pull/938#discussion_r44418230","pull_request_url":"https://api.github.com/repos/18F/openFEC-web-app/pulls/938","_links":{"self":{"href":"https://api.github.com/repos/18F/openFEC-web-app/pulls/comments/44418230"},"html":{"href":"https://github.com/18F/openFEC-web-app/pull/938#discussion_r44418230"},"pull_request":{"href":"https://api.github.com/repos/18F/openFEC-web-app/pulls/938"}}},"pull_request":{"url":"https://api.github.com/repos/18F/openFEC-web-app/pulls/938","id":50199971,"html_url":"https://github.com/18F/openFEC-web-app/pull/938","diff_url":"https://github.com/18F/openFEC-web-app/pull/938.diff","patch_url":"https://github.com/18F/openFEC-web-app/pull/938.patch","issue_url":"https://api.github.com/repos/18F/openFEC-web-app/issues/938","number":938,"state":"open","locked":false,"title":"[WIP] Feature/refactor data tables","user":{"login":"jmcarp","id":1633460,"avatar_url":"https://avatars.githubusercontent.com/u/1633460?v=3","gravatar_id":"","url":"https://api.github.com/users/jmcarp","html_url":"https://github.com/jmcarp","followers_url":"https://api.github.com/users/jmcarp/followers","following_url":"https://api.github.com/users/jmcarp/following{/other_user}","gists_url":"https://api.github.com/users/jmcarp/gists{/gist_id}","starred_url":"https://api.github.com/users/jmcarp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmcarp/subscriptions","organizations_url":"https://api.github.com/users/jmcarp/orgs","repos_url":"https://api.github.com/users/jmcarp/repos","events_url":"https://api.github.com/users/jmcarp/events{/privacy}","received_events_url":"https://api.github.com/users/jmcarp/received_events","type":"User","site_admin":false},"body":"* [x] Rewrite table logic as class\r\n* [ ] Add unit tests for tables\r\n* [ ] Rewrite table panel as class\r\n* [ ] Add unit tests for panels\r\n* [ ] Update consumers of modified code\r\n\r\nPart of #865.","created_at":"2015-11-10T00:45:04Z","updated_at":"2015-11-10T15:20:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":"dcd2fff6393875dc2b92a8f5e36b3f3448528f9f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/18F/openFEC-web-app/pulls/938/commits","review_comments_url":"https://api.github.com/repos/18F/openFEC-web-app/pulls/938/comments","review_comment_url":"https://api.github.com/repos/18F/openFEC-web-app/pulls/comments{/number}","comments_url":"https://api.github.com/repos/18F/openFEC-web-app/issues/938/comments","statuses_url":"https://api.github.com/repos/18F/openFEC-web-app/statuses/83b191c4ec6fdcb8e45de498b9243b60fb590726","head":{"label":"jmcarp:feature/refactor-data-tables","ref":"feature/refactor-data-tables","sha":"83b191c4ec6fdcb8e45de498b9243b60fb590726","user":{"login":"jmcarp","id":1633460,"avatar_url":"https://avatars.githubusercontent.com/u/1633460?v=3","gravatar_id":"","url":"https://api.github.com/users/jmcarp","html_url":"https://github.com/jmcarp","followers_url":"https://api.github.com/users/jmcarp/followers","following_url":"https://api.github.com/users/jmcarp/following{/other_user}","gists_url":"https://api.github.com/users/jmcarp/gists{/gist_id}","starred_url":"https://api.github.com/users/jmcarp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmcarp/subscriptions","organizations_url":"https://api.github.com/users/jmcarp/orgs","repos_url":"https://api.github.com/users/jmcarp/repos","events_url":"https://api.github.com/users/jmcarp/events{/privacy}","received_events_url":"https://api.github.com/users/jmcarp/received_events","type":"User","site_admin":false},"repo":{"id":33632247,"name":"openFEC-web-app","full_name":"jmcarp/openFEC-web-app","owner":{"login":"jmcarp","id":1633460,"avatar_url":"https://avatars.githubusercontent.com/u/1633460?v=3","gravatar_id":"","url":"https://api.github.com/users/jmcarp","html_url":"https://github.com/jmcarp","followers_url":"https://api.github.com/users/jmcarp/followers","following_url":"https://api.github.com/users/jmcarp/following{/other_user}","gists_url":"https://api.github.com/users/jmcarp/gists{/gist_id}","starred_url":"https://api.github.com/users/jmcarp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmcarp/subscriptions","organizations_url":"https://api.github.com/users/jmcarp/orgs","repos_url":"https://api.github.com/users/jmcarp/repos","events_url":"https://api.github.com/users/jmcarp/events{/privacy}","received_events_url":"https://api.github.com/users/jmcarp/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jmcarp/openFEC-web-app","description":"Server- and client-side web application for the OpenFEC data site.","fork":true,"url":"https://api.github.com/repos/jmcarp/openFEC-web-app","forks_url":"https://api.github.com/repos/jmcarp/openFEC-web-app/forks","keys_url":"https://api.github.com/repos/jmcarp/openFEC-web-app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jmcarp/openFEC-web-app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jmcarp/openFEC-web-app/teams","hooks_url":"https://api.github.com/repos/jmcarp/openFEC-web-app/hooks","issue_events_url":"https://api.github.com/repos/jmcarp/openFEC-web-app/issues/events{/number}","events_url":"https://api.github.com/repos/jmcarp/openFEC-web-app/events","assignees_url":"https://api.github.com/repos/jmcarp/openFEC-web-app/assignees{/user}","branches_url":"https://api.github.com/repos/jmcarp/openFEC-web-app/branches{/branch}","tags_url":"https://api.github.com/repos/jmcarp/openFEC-web-app/tags","blobs_url":"https://api.github.com/repos/jmcarp/openFEC-web-app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jmcarp/openFEC-web-app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jmcarp/openFEC-web-app/git/refs{/sha}","trees_url":"https://api.github.com/repos/jmcarp/openFEC-web-app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jmcarp/openFEC-web-app/statuses/{sha}","languages_url":"https://api.github.com/repos/jmcarp/openFEC-web-app/languages","stargazers_url":"https://api.github.com/repos/jmcarp/openFEC-web-app/stargazers","contributors_url":"https://api.github.com/repos/jmcarp/openFEC-web-app/contributors","subscribers_url":"https://api.github.com/repos/jmcarp/openFEC-web-app/subscribers","subscription_url":"https://api.github.com/repos/jmcarp/openFEC-web-app/subscription","commits_url":"https://api.github.com/repos/jmcarp/openFEC-web-app/commits{/sha}","git_commits_url":"https://api.github.com/repos/jmcarp/openFEC-web-app/git/commits{/sha}","comments_url":"https://api.github.com/repos/jmcarp/openFEC-web-app/comments{/number}","issue_comment_url":"https://api.github.com/repos/jmcarp/openFEC-web-app/issues/comments{/number}","contents_url":"https://api.github.com/repos/jmcarp/openFEC-web-app/contents/{+path}","compare_url":"https://api.github.com/repos/jmcarp/openFEC-web-app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jmcarp/openFEC-web-app/merges","archive_url":"https://api.github.com/repos/jmcarp/openFEC-web-app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jmcarp/openFEC-web-app/downloads","issues_url":"https://api.github.com/repos/jmcarp/openFEC-web-app/issues{/number}","pulls_url":"https://api.github.com/repos/jmcarp/openFEC-web-app/pulls{/number}","milestones_url":"https://api.github.com/repos/jmcarp/openFEC-web-app/milestones{/number}","notifications_url":"https://api.github.com/repos/jmcarp/openFEC-web-app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jmcarp/openFEC-web-app/labels{/name}","releases_url":"https://api.github.com/repos/jmcarp/openFEC-web-app/releases{/id}","created_at":"2015-04-08T21:06:00Z","updated_at":"2015-04-08T21:06:01Z","pushed_at":"2015-11-10T15:20:33Z","git_url":"git://github.com/jmcarp/openFEC-web-app.git","ssh_url":"git@github.com:jmcarp/openFEC-web-app.git","clone_url":"https://github.com/jmcarp/openFEC-web-app.git","svn_url":"https://github.com/jmcarp/openFEC-web-app","homepage":"","size":13464,"stargazers_count":0,"watchers_count":0,"language":"CSS","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":"18F:develop","ref":"develop","sha":"a61b105d5cbd771b88454aaac700f2903a0fbf5f","user":{"login":"18F","id":6233994,"avatar_url":"https://avatars.githubusercontent.com/u/6233994?v=3","gravatar_id":"","url":"https://api.github.com/users/18F","html_url":"https://github.com/18F","followers_url":"https://api.github.com/users/18F/followers","following_url":"https://api.github.com/users/18F/following{/other_user}","gists_url":"https://api.github.com/users/18F/gists{/gist_id}","starred_url":"https://api.github.com/users/18F/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/18F/subscriptions","organizations_url":"https://api.github.com/users/18F/orgs","repos_url":"https://api.github.com/users/18F/repos","events_url":"https://api.github.com/users/18F/events{/privacy}","received_events_url":"https://api.github.com/users/18F/received_events","type":"Organization","site_admin":false},"repo":{"id":25273785,"name":"openFEC-web-app","full_name":"18F/openFEC-web-app","owner":{"login":"18F","id":6233994,"avatar_url":"https://avatars.githubusercontent.com/u/6233994?v=3","gravatar_id":"","url":"https://api.github.com/users/18F","html_url":"https://github.com/18F","followers_url":"https://api.github.com/users/18F/followers","following_url":"https://api.github.com/users/18F/following{/other_user}","gists_url":"https://api.github.com/users/18F/gists{/gist_id}","starred_url":"https://api.github.com/users/18F/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/18F/subscriptions","organizations_url":"https://api.github.com/users/18F/orgs","repos_url":"https://api.github.com/users/18F/repos","events_url":"https://api.github.com/users/18F/events{/privacy}","received_events_url":"https://api.github.com/users/18F/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/18F/openFEC-web-app","description":"The betaFEC web app for exploring campaign finance data","fork":false,"url":"https://api.github.com/repos/18F/openFEC-web-app","forks_url":"https://api.github.com/repos/18F/openFEC-web-app/forks","keys_url":"https://api.github.com/repos/18F/openFEC-web-app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/18F/openFEC-web-app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/18F/openFEC-web-app/teams","hooks_url":"https://api.github.com/repos/18F/openFEC-web-app/hooks","issue_events_url":"https://api.github.com/repos/18F/openFEC-web-app/issues/events{/number}","events_url":"https://api.github.com/repos/18F/openFEC-web-app/events","assignees_url":"https://api.github.com/repos/18F/openFEC-web-app/assignees{/user}","branches_url":"https://api.github.com/repos/18F/openFEC-web-app/branches{/branch}","tags_url":"https://api.github.com/repos/18F/openFEC-web-app/tags","blobs_url":"https://api.github.com/repos/18F/openFEC-web-app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/18F/openFEC-web-app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/18F/openFEC-web-app/git/refs{/sha}","trees_url":"https://api.github.com/repos/18F/openFEC-web-app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/18F/openFEC-web-app/statuses/{sha}","languages_url":"https://api.github.com/repos/18F/openFEC-web-app/languages","stargazers_url":"https://api.github.com/repos/18F/openFEC-web-app/stargazers","contributors_url":"https://api.github.com/repos/18F/openFEC-web-app/contributors","subscribers_url":"https://api.github.com/repos/18F/openFEC-web-app/subscribers","subscription_url":"https://api.github.com/repos/18F/openFEC-web-app/subscription","commits_url":"https://api.github.com/repos/18F/openFEC-web-app/commits{/sha}","git_commits_url":"https://api.github.com/repos/18F/openFEC-web-app/git/commits{/sha}","comments_url":"https://api.github.com/repos/18F/openFEC-web-app/comments{/number}","issue_comment_url":"https://api.github.com/repos/18F/openFEC-web-app/issues/comments{/number}","contents_url":"https://api.github.com/repos/18F/openFEC-web-app/contents/{+path}","compare_url":"https://api.github.com/repos/18F/openFEC-web-app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/18F/openFEC-web-app/merges","archive_url":"https://api.github.com/repos/18F/openFEC-web-app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/18F/openFEC-web-app/downloads","issues_url":"https://api.github.com/repos/18F/openFEC-web-app/issues{/number}","pulls_url":"https://api.github.com/repos/18F/openFEC-web-app/pulls{/number}","milestones_url":"https://api.github.com/repos/18F/openFEC-web-app/milestones{/number}","notifications_url":"https://api.github.com/repos/18F/openFEC-web-app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/18F/openFEC-web-app/labels{/name}","releases_url":"https://api.github.com/repos/18F/openFEC-web-app/releases{/id}","created_at":"2014-10-15T21:12:32Z","updated_at":"2015-11-02T18:19:49Z","pushed_at":"2015-11-10T15:20:33Z","git_url":"git://github.com/18F/openFEC-web-app.git","ssh_url":"git@github.com:18F/openFEC-web-app.git","clone_url":"https://github.com/18F/openFEC-web-app.git","svn_url":"https://github.com/18F/openFEC-web-app","homepage":"https://beta.fec.gov/data","size":16856,"stargazers_count":13,"watchers_count":13,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":75,"forks":7,"open_issues":75,"watchers":13,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/18F/openFEC-web-app/pulls/938"},"html":{"href":"https://github.com/18F/openFEC-web-app/pull/938"},"issue":{"href":"https://api.github.com/repos/18F/openFEC-web-app/issues/938"},"comments":{"href":"https://api.github.com/repos/18F/openFEC-web-app/issues/938/comments"},"review_comments":{"href":"https://api.github.com/repos/18F/openFEC-web-app/pulls/938/comments"},"review_comment":{"href":"https://api.github.com/repos/18F/openFEC-web-app/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/18F/openFEC-web-app/pulls/938/commits"},"statuses":{"href":"https://api.github.com/repos/18F/openFEC-web-app/statuses/83b191c4ec6fdcb8e45de498b9243b60fb590726"}}}}