{"action":"created","comment":{"url":"https://api.github.com/repos/honestweb/pocket/pulls/comments/62911495","id":62911495,"diff_hunk":"@@ -0,0 +1,49 @@\n+(function() {\n+  var ORDER_TABLE_SELECTORS = {\n+    productsInfo: {\n+      link: \".products-info\",\n+      block: \".buying-list__table__products\",\n+    },\n+    orderInfo: {\n+      link: \".order-info\",\n+      block: \".buying-list__table__order-info\"\n+    }\n+  }\n+\n+  // Arrays\n+  var blockClasses = _.values( _.map(ORDER_TABLE_SELECTORS, \"block\") );\n+  var linkClasses = _.values( _.map(ORDER_TABLE_SELECTORS, \"link\") );\n+\n+  function toggleBlock(link, description) {\n+    var $parent = link.closest(\".buying-list__table__order\");\n+    var classToToggle = ORDER_TABLE_SELECTORS[description][\"block\"];\n+    var classesToHide = _.filter(blockClasses, function(cls) {","path":"app/assets/javascripts/application/orders/toggle.js","position":20,"original_position":20,"commit_id":"3589219d8480d04dd2b8dd0b38bf28692e92c966","original_commit_id":"3589219d8480d04dd2b8dd0b38bf28692e92c966","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"'_' is not defined.","created_at":"2016-05-11T19:33:06Z","updated_at":"2016-05-11T19:33:06Z","html_url":"https://github.com/honestweb/pocket/pull/9#discussion_r62911495","pull_request_url":"https://api.github.com/repos/honestweb/pocket/pulls/9","_links":{"self":{"href":"https://api.github.com/repos/honestweb/pocket/pulls/comments/62911495"},"html":{"href":"https://github.com/honestweb/pocket/pull/9#discussion_r62911495"},"pull_request":{"href":"https://api.github.com/repos/honestweb/pocket/pulls/9"}}},"pull_request":{"url":"https://api.github.com/repos/honestweb/pocket/pulls/9","id":65831142,"html_url":"https://github.com/honestweb/pocket/pull/9","diff_url":"https://github.com/honestweb/pocket/pull/9.diff","patch_url":"https://github.com/honestweb/pocket/pull/9.patch","issue_url":"https://api.github.com/repos/honestweb/pocket/issues/9","number":9,"state":"open","locked":false,"title":"Orders","user":{"login":"honestweb","id":8902399,"avatar_url":"https://avatars.githubusercontent.com/u/8902399?v=3","gravatar_id":"","url":"https://api.github.com/users/honestweb","html_url":"https://github.com/honestweb","followers_url":"https://api.github.com/users/honestweb/followers","following_url":"https://api.github.com/users/honestweb/following{/other_user}","gists_url":"https://api.github.com/users/honestweb/gists{/gist_id}","starred_url":"https://api.github.com/users/honestweb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/honestweb/subscriptions","organizations_url":"https://api.github.com/users/honestweb/orgs","repos_url":"https://api.github.com/users/honestweb/repos","events_url":"https://api.github.com/users/honestweb/events{/privacy}","received_events_url":"https://api.github.com/users/honestweb/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-04-08T18:54:15Z","updated_at":"2016-05-11T19:33:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":"58b332e8757cea5a2198fee55473fd1abdd7012f","assignee":{"login":"honestweb","id":8902399,"avatar_url":"https://avatars.githubusercontent.com/u/8902399?v=3","gravatar_id":"","url":"https://api.github.com/users/honestweb","html_url":"https://github.com/honestweb","followers_url":"https://api.github.com/users/honestweb/followers","following_url":"https://api.github.com/users/honestweb/following{/other_user}","gists_url":"https://api.github.com/users/honestweb/gists{/gist_id}","starred_url":"https://api.github.com/users/honestweb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/honestweb/subscriptions","organizations_url":"https://api.github.com/users/honestweb/orgs","repos_url":"https://api.github.com/users/honestweb/repos","events_url":"https://api.github.com/users/honestweb/events{/privacy}","received_events_url":"https://api.github.com/users/honestweb/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/honestweb/pocket/pulls/9/commits","review_comments_url":"https://api.github.com/repos/honestweb/pocket/pulls/9/comments","review_comment_url":"https://api.github.com/repos/honestweb/pocket/pulls/comments{/number}","comments_url":"https://api.github.com/repos/honestweb/pocket/issues/9/comments","statuses_url":"https://api.github.com/repos/honestweb/pocket/statuses/3589219d8480d04dd2b8dd0b38bf28692e92c966","head":{"label":"honestweb:orders","ref":"orders","sha":"3589219d8480d04dd2b8dd0b38bf28692e92c966","user":{"login":"honestweb","id":8902399,"avatar_url":"https://avatars.githubusercontent.com/u/8902399?v=3","gravatar_id":"","url":"https://api.github.com/users/honestweb","html_url":"https://github.com/honestweb","followers_url":"https://api.github.com/users/honestweb/followers","following_url":"https://api.github.com/users/honestweb/following{/other_user}","gists_url":"https://api.github.com/users/honestweb/gists{/gist_id}","starred_url":"https://api.github.com/users/honestweb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/honestweb/subscriptions","organizations_url":"https://api.github.com/users/honestweb/orgs","repos_url":"https://api.github.com/users/honestweb/repos","events_url":"https://api.github.com/users/honestweb/events{/privacy}","received_events_url":"https://api.github.com/users/honestweb/received_events","type":"User","site_admin":false},"repo":{"id":49820544,"name":"pocket","full_name":"honestweb/pocket","owner":{"login":"honestweb","id":8902399,"avatar_url":"https://avatars.githubusercontent.com/u/8902399?v=3","gravatar_id":"","url":"https://api.github.com/users/honestweb","html_url":"https://github.com/honestweb","followers_url":"https://api.github.com/users/honestweb/followers","following_url":"https://api.github.com/users/honestweb/following{/other_user}","gists_url":"https://api.github.com/users/honestweb/gists{/gist_id}","starred_url":"https://api.github.com/users/honestweb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/honestweb/subscriptions","organizations_url":"https://api.github.com/users/honestweb/orgs","repos_url":"https://api.github.com/users/honestweb/repos","events_url":"https://api.github.com/users/honestweb/events{/privacy}","received_events_url":"https://api.github.com/users/honestweb/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/honestweb/pocket","description":"Online store (in development)","fork":false,"url":"https://api.github.com/repos/honestweb/pocket","forks_url":"https://api.github.com/repos/honestweb/pocket/forks","keys_url":"https://api.github.com/repos/honestweb/pocket/keys{/key_id}","collaborators_url":"https://api.github.com/repos/honestweb/pocket/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/honestweb/pocket/teams","hooks_url":"https://api.github.com/repos/honestweb/pocket/hooks","issue_events_url":"https://api.github.com/repos/honestweb/pocket/issues/events{/number}","events_url":"https://api.github.com/repos/honestweb/pocket/events","assignees_url":"https://api.github.com/repos/honestweb/pocket/assignees{/user}","branches_url":"https://api.github.com/repos/honestweb/pocket/branches{/branch}","tags_url":"https://api.github.com/repos/honestweb/pocket/tags","blobs_url":"https://api.github.com/repos/honestweb/pocket/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/honestweb/pocket/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/honestweb/pocket/git/refs{/sha}","trees_url":"https://api.github.com/repos/honestweb/pocket/git/trees{/sha}","statuses_url":"https://api.github.com/repos/honestweb/pocket/statuses/{sha}","languages_url":"https://api.github.com/repos/honestweb/pocket/languages","stargazers_url":"https://api.github.com/repos/honestweb/pocket/stargazers","contributors_url":"https://api.github.com/repos/honestweb/pocket/contributors","subscribers_url":"https://api.github.com/repos/honestweb/pocket/subscribers","subscription_url":"https://api.github.com/repos/honestweb/pocket/subscription","commits_url":"https://api.github.com/repos/honestweb/pocket/commits{/sha}","git_commits_url":"https://api.github.com/repos/honestweb/pocket/git/commits{/sha}","comments_url":"https://api.github.com/repos/honestweb/pocket/comments{/number}","issue_comment_url":"https://api.github.com/repos/honestweb/pocket/issues/comments{/number}","contents_url":"https://api.github.com/repos/honestweb/pocket/contents/{+path}","compare_url":"https://api.github.com/repos/honestweb/pocket/compare/{base}...{head}","merges_url":"https://api.github.com/repos/honestweb/pocket/merges","archive_url":"https://api.github.com/repos/honestweb/pocket/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/honestweb/pocket/downloads","issues_url":"https://api.github.com/repos/honestweb/pocket/issues{/number}","pulls_url":"https://api.github.com/repos/honestweb/pocket/pulls{/number}","milestones_url":"https://api.github.com/repos/honestweb/pocket/milestones{/number}","notifications_url":"https://api.github.com/repos/honestweb/pocket/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/honestweb/pocket/labels{/name}","releases_url":"https://api.github.com/repos/honestweb/pocket/releases{/id}","deployments_url":"https://api.github.com/repos/honestweb/pocket/deployments","created_at":"2016-01-17T14:27:45Z","updated_at":"2016-04-20T18:04:09Z","pushed_at":"2016-05-11T19:32:53Z","git_url":"git://github.com/honestweb/pocket.git","ssh_url":"git@github.com:honestweb/pocket.git","clone_url":"https://github.com/honestweb/pocket.git","svn_url":"https://github.com/honestweb/pocket","homepage":"","size":256,"stargazers_count":2,"watchers_count":2,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":2,"default_branch":"master"}},"base":{"label":"honestweb:master","ref":"master","sha":"747c0e3a852bfa2d09a2a68096d7224201d40fd6","user":{"login":"honestweb","id":8902399,"avatar_url":"https://avatars.githubusercontent.com/u/8902399?v=3","gravatar_id":"","url":"https://api.github.com/users/honestweb","html_url":"https://github.com/honestweb","followers_url":"https://api.github.com/users/honestweb/followers","following_url":"https://api.github.com/users/honestweb/following{/other_user}","gists_url":"https://api.github.com/users/honestweb/gists{/gist_id}","starred_url":"https://api.github.com/users/honestweb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/honestweb/subscriptions","organizations_url":"https://api.github.com/users/honestweb/orgs","repos_url":"https://api.github.com/users/honestweb/repos","events_url":"https://api.github.com/users/honestweb/events{/privacy}","received_events_url":"https://api.github.com/users/honestweb/received_events","type":"User","site_admin":false},"repo":{"id":49820544,"name":"pocket","full_name":"honestweb/pocket","owner":{"login":"honestweb","id":8902399,"avatar_url":"https://avatars.githubusercontent.com/u/8902399?v=3","gravatar_id":"","url":"https://api.github.com/users/honestweb","html_url":"https://github.com/honestweb","followers_url":"https://api.github.com/users/honestweb/followers","following_url":"https://api.github.com/users/honestweb/following{/other_user}","gists_url":"https://api.github.com/users/honestweb/gists{/gist_id}","starred_url":"https://api.github.com/users/honestweb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/honestweb/subscriptions","organizations_url":"https://api.github.com/users/honestweb/orgs","repos_url":"https://api.github.com/users/honestweb/repos","events_url":"https://api.github.com/users/honestweb/events{/privacy}","received_events_url":"https://api.github.com/users/honestweb/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/honestweb/pocket","description":"Online store (in development)","fork":false,"url":"https://api.github.com/repos/honestweb/pocket","forks_url":"https://api.github.com/repos/honestweb/pocket/forks","keys_url":"https://api.github.com/repos/honestweb/pocket/keys{/key_id}","collaborators_url":"https://api.github.com/repos/honestweb/pocket/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/honestweb/pocket/teams","hooks_url":"https://api.github.com/repos/honestweb/pocket/hooks","issue_events_url":"https://api.github.com/repos/honestweb/pocket/issues/events{/number}","events_url":"https://api.github.com/repos/honestweb/pocket/events","assignees_url":"https://api.github.com/repos/honestweb/pocket/assignees{/user}","branches_url":"https://api.github.com/repos/honestweb/pocket/branches{/branch}","tags_url":"https://api.github.com/repos/honestweb/pocket/tags","blobs_url":"https://api.github.com/repos/honestweb/pocket/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/honestweb/pocket/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/honestweb/pocket/git/refs{/sha}","trees_url":"https://api.github.com/repos/honestweb/pocket/git/trees{/sha}","statuses_url":"https://api.github.com/repos/honestweb/pocket/statuses/{sha}","languages_url":"https://api.github.com/repos/honestweb/pocket/languages","stargazers_url":"https://api.github.com/repos/honestweb/pocket/stargazers","contributors_url":"https://api.github.com/repos/honestweb/pocket/contributors","subscribers_url":"https://api.github.com/repos/honestweb/pocket/subscribers","subscription_url":"https://api.github.com/repos/honestweb/pocket/subscription","commits_url":"https://api.github.com/repos/honestweb/pocket/commits{/sha}","git_commits_url":"https://api.github.com/repos/honestweb/pocket/git/commits{/sha}","comments_url":"https://api.github.com/repos/honestweb/pocket/comments{/number}","issue_comment_url":"https://api.github.com/repos/honestweb/pocket/issues/comments{/number}","contents_url":"https://api.github.com/repos/honestweb/pocket/contents/{+path}","compare_url":"https://api.github.com/repos/honestweb/pocket/compare/{base}...{head}","merges_url":"https://api.github.com/repos/honestweb/pocket/merges","archive_url":"https://api.github.com/repos/honestweb/pocket/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/honestweb/pocket/downloads","issues_url":"https://api.github.com/repos/honestweb/pocket/issues{/number}","pulls_url":"https://api.github.com/repos/honestweb/pocket/pulls{/number}","milestones_url":"https://api.github.com/repos/honestweb/pocket/milestones{/number}","notifications_url":"https://api.github.com/repos/honestweb/pocket/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/honestweb/pocket/labels{/name}","releases_url":"https://api.github.com/repos/honestweb/pocket/releases{/id}","deployments_url":"https://api.github.com/repos/honestweb/pocket/deployments","created_at":"2016-01-17T14:27:45Z","updated_at":"2016-04-20T18:04:09Z","pushed_at":"2016-05-11T19:32:53Z","git_url":"git://github.com/honestweb/pocket.git","ssh_url":"git@github.com:honestweb/pocket.git","clone_url":"https://github.com/honestweb/pocket.git","svn_url":"https://github.com/honestweb/pocket","homepage":"","size":256,"stargazers_count":2,"watchers_count":2,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/honestweb/pocket/pulls/9"},"html":{"href":"https://github.com/honestweb/pocket/pull/9"},"issue":{"href":"https://api.github.com/repos/honestweb/pocket/issues/9"},"comments":{"href":"https://api.github.com/repos/honestweb/pocket/issues/9/comments"},"review_comments":{"href":"https://api.github.com/repos/honestweb/pocket/pulls/9/comments"},"review_comment":{"href":"https://api.github.com/repos/honestweb/pocket/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/honestweb/pocket/pulls/9/commits"},"statuses":{"href":"https://api.github.com/repos/honestweb/pocket/statuses/3589219d8480d04dd2b8dd0b38bf28692e92c966"}}}}