{"action":"created","comment":{"url":"https://api.github.com/repos/ga-wdi-boston/wdi_8_js_lab_jquery_tic_tac_toe/pulls/comments/25255481","id":25255481,"diff_hunk":"@@ -1,2 +1,168 @@\n-// Your code here\n // Use the jQuery\n+var App = (function() {\n+\n+  var $boxCell, $box1, $box2, $box3, $box4, $box5, $box6, $box7, $box8, $box9;\n+  var x = 1;\n+\n+  var init = function() {\n+\n+    $boxCell = $('.box_cell');\n+    $('tr').on('click', '.box_cell', App.changeColor );","path":"js/tic_tac_toe.js","position":11,"original_position":11,"commit_id":"c3b0819edcf12a3c6b2f6816d1ca784093195746","original_commit_id":"c3b0819edcf12a3c6b2f6816d1ca784093195746","user":{"login":"tibbon","id":82880,"avatar_url":"https://avatars.githubusercontent.com/u/82880?v=3","gravatar_id":"","url":"https://api.github.com/users/tibbon","html_url":"https://github.com/tibbon","followers_url":"https://api.github.com/users/tibbon/followers","following_url":"https://api.github.com/users/tibbon/following{/other_user}","gists_url":"https://api.github.com/users/tibbon/gists{/gist_id}","starred_url":"https://api.github.com/users/tibbon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tibbon/subscriptions","organizations_url":"https://api.github.com/users/tibbon/orgs","repos_url":"https://api.github.com/users/tibbon/repos","events_url":"https://api.github.com/users/tibbon/events{/privacy}","received_events_url":"https://api.github.com/users/tibbon/received_events","type":"User","site_admin":false},"body":"I think you could make one function that's triggered on the click event that does the changeColor and winner functionality. Attaching too many events to the dom makes things slow in big apps (not this one... but just in theory). ","created_at":"2015-02-24T14:32:22Z","updated_at":"2015-02-24T14:32:22Z","html_url":"https://github.com/ga-wdi-boston/wdi_8_js_lab_jquery_tic_tac_toe/pull/5#discussion_r25255481","pull_request_url":"https://api.github.com/repos/ga-wdi-boston/wdi_8_js_lab_jquery_tic_tac_toe/pulls/5","_links":{"self":{"href":"https://api.github.com/repos/ga-wdi-boston/wdi_8_js_lab_jquery_tic_tac_toe/pulls/comments/25255481"},"html":{"href":"https://github.com/ga-wdi-boston/wdi_8_js_lab_jquery_tic_tac_toe/pull/5#discussion_r25255481"},"pull_request":{"href":"https://api.github.com/repos/ga-wdi-boston/wdi_8_js_lab_jquery_tic_tac_toe/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/ga-wdi-boston/wdi_8_js_lab_jquery_tic_tac_toe/pulls/5","id":29862895,"html_url":"https://github.com/ga-wdi-boston/wdi_8_js_lab_jquery_tic_tac_toe/pull/5","diff_url":"https://github.com/ga-wdi-boston/wdi_8_js_lab_jquery_tic_tac_toe/pull/5.diff","patch_url":"https://github.com/ga-wdi-boston/wdi_8_js_lab_jquery_tic_tac_toe/pull/5.patch","issue_url":"https://api.github.com/repos/ga-wdi-boston/wdi_8_js_lab_jquery_tic_tac_toe/issues/5","number":5,"state":"open","locked":false,"title":"works the long way, can't wait to see this tomorrow morning","user":{"login":"goodeats","id":3760184,"avatar_url":"https://avatars.githubusercontent.com/u/3760184?v=3","gravatar_id":"","url":"https://api.github.com/users/goodeats","html_url":"https://github.com/goodeats","followers_url":"https://api.github.com/users/goodeats/followers","following_url":"https://api.github.com/users/goodeats/following{/other_user}","gists_url":"https://api.github.com/users/goodeats/gists{/gist_id}","starred_url":"https://api.github.com/users/goodeats/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/goodeats/subscriptions","organizations_url":"https://api.github.com/users/goodeats/orgs","repos_url":"https://api.github.com/users/goodeats/repos","events_url":"https://api.github.com/users/goodeats/events{/privacy}","received_events_url":"https://api.github.com/users/goodeats/received_events","type":"User","site_admin":false},"body":"tic, tac, done for the night","created_at":"2015-02-24T01:12:56Z","updated_at":"2015-02-24T14:32:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d5dd15d4729a1f43a1c04bd84839c96b86e4da56","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ga-wdi-boston/wdi_8_js_lab_jquery_tic_tac_toe/pulls/5/commits","review_comments_url":"https://api.github.com/repos/ga-wdi-boston/wdi_8_js_lab_jquery_tic_tac_toe/pulls/5/comments","review_comment_url":"https://api.github.com/repos/ga-wdi-boston/wdi_8_js_lab_jquery_tic_tac_toe/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ga-wdi-boston/wdi_8_js_lab_jquery_tic_tac_toe/issues/5/comments","statuses_url":"https://api.github.com/repos/ga-wdi-boston/wdi_8_js_lab_jquery_tic_tac_toe/statuses/c3b0819edcf12a3c6b2f6816d1ca784093195746","head":{"label":"goodeats:master","ref":"master","sha":"c3b0819edcf12a3c6b2f6816d1ca784093195746","user":{"login":"goodeats","id":3760184,"avatar_url":"https://avatars.githubusercontent.com/u/3760184?v=3","gravatar_id":"","url":"https://api.github.com/users/goodeats","html_url":"https://github.com/goodeats","followers_url":"https://api.github.com/users/goodeats/followers","following_url":"https://api.github.com/users/goodeats/following{/other_user}","gists_url":"https://api.github.com/users/goodeats/gists{/gist_id}","starred_url":"https://api.github.com/users/goodeats/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/goodeats/subscriptions","organizations_url":"https://api.github.com/users/goodeats/orgs","repos_url":"https://api.github.com/users/goodeats/repos","events_url":"https://api.github.com/users/goodeats/events{/privacy}","received_events_url":"https://api.github.com/users/goodeats/received_events","type":"User","site_admin":false},"repo":{"id":31227370,"name":"wdi_8_js_lab_jquery_tic_tac_toe","full_name":"goodeats/wdi_8_js_lab_jquery_tic_tac_toe","owner":{"login":"goodeats","id":3760184,"avatar_url":"https://avatars.githubusercontent.com/u/3760184?v=3","gravatar_id":"","url":"https://api.github.com/users/goodeats","html_url":"https://github.com/goodeats","followers_url":"https://api.github.com/users/goodeats/followers","following_url":"https://api.github.com/users/goodeats/following{/other_user}","gists_url":"https://api.github.com/users/goodeats/gists{/gist_id}","starred_url":"https://api.github.com/users/goodeats/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/goodeats/subscriptions","organizations_url":"https://api.github.com/users/goodeats/orgs","repos_url":"https://api.github.com/users/goodeats/repos","events_url":"https://api.github.com/users/goodeats/events{/privacy}","received_events_url":"https://api.github.com/users/goodeats/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/goodeats/wdi_8_js_lab_jquery_tic_tac_toe","description":"","fork":true,"url":"https://api.github.com/repos/goodeats/wdi_8_js_lab_jquery_tic_tac_toe","forks_url":"https://api.github.com/repos/goodeats/wdi_8_js_lab_jquery_tic_tac_toe/forks","keys_url":"https://api.github.com/repos/goodeats/wdi_8_js_lab_jquery_tic_tac_toe/keys{/key_id}","collaborators_url":"https://api.github.com/repos/goodeats/wdi_8_js_lab_jquery_tic_tac_toe/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/goodeats/wdi_8_js_lab_jquery_tic_tac_toe/teams","hooks_url":"https://api.github.com/repos/goodeats/wdi_8_js_lab_jquery_tic_tac_toe/hooks","issue_events_url":"https://api.github.com/repos/goodeats/wdi_8_js_lab_jquery_tic_tac_toe/issues/events{/number}","events_url":"https://api.github.com/repos/goodeats/wdi_8_js_lab_jquery_tic_tac_toe/events","assignees_url":"https://api.github.com/repos/goodeats/wdi_8_js_lab_jquery_tic_tac_toe/assignees{/user}","branches_url":"https://api.github.com/repos/goodeats/wdi_8_js_lab_jquery_tic_tac_toe/branches{/branch}","tags_url":"https://api.github.com/repos/goodeats/wdi_8_js_lab_jquery_tic_tac_toe/tags","blobs_url":"https://api.github.com/repos/goodeats/wdi_8_js_lab_jquery_tic_tac_toe/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/goodeats/wdi_8_js_lab_jquery_tic_tac_toe/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/goodeats/wdi_8_js_lab_jquery_tic_tac_toe/git/refs{/sha}","trees_url":"https://api.github.com/repos/goodeats/wdi_8_js_lab_jquery_tic_tac_toe/git/trees{/sha}","statuses_url":"https://api.github.com/repos/goodeats/wdi_8_js_lab_jquery_tic_tac_toe/statuses/{sha}","languages_url":"https://api.github.com/repos/goodeats/wdi_8_js_lab_jquery_tic_tac_toe/languages","stargazers_url":"https://api.github.com/repos/goodeats/wdi_8_js_lab_jquery_tic_tac_toe/stargazers","contributors_url":"https://api.github.com/repos/goodeats/wdi_8_js_lab_jquery_tic_tac_toe/contributors","subscribers_url":"https://api.github.com/repos/goodeats/wdi_8_js_lab_jquery_tic_tac_toe/subscribers","subscription_url":"https://api.github.com/repos/goodeats/wdi_8_js_lab_jquery_tic_tac_toe/subscription","commits_url":"https://api.github.com/repos/goodeats/wdi_8_js_lab_jquery_tic_tac_toe/commits{/sha}","git_commits_url":"https://api.github.com/repos/goodeats/wdi_8_js_lab_jquery_tic_tac_toe/git/commits{/sha}","comments_url":"https://api.github.com/repos/goodeats/wdi_8_js_lab_jquery_tic_tac_toe/comments{/number}","issue_comment_url":"https://api.github.com/repos/goodeats/wdi_8_js_lab_jquery_tic_tac_toe/issues/comments{/number}","contents_url":"https://api.github.com/repos/goodeats/wdi_8_js_lab_jquery_tic_tac_toe/contents/{+path}","compare_url":"https://api.github.com/repos/goodeats/wdi_8_js_lab_jquery_tic_tac_toe/compare/{base}...{head}","merges_url":"https://api.github.com/repos/goodeats/wdi_8_js_lab_jquery_tic_tac_toe/merges","archive_url":"https://api.github.com/repos/goodeats/wdi_8_js_lab_jquery_tic_tac_toe/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/goodeats/wdi_8_js_lab_jquery_tic_tac_toe/downloads","issues_url":"https://api.github.com/repos/goodeats/wdi_8_js_lab_jquery_tic_tac_toe/issues{/number}","pulls_url":"https://api.github.com/repos/goodeats/wdi_8_js_lab_jquery_tic_tac_toe/pulls{/number}","milestones_url":"https://api.github.com/repos/goodeats/wdi_8_js_lab_jquery_tic_tac_toe/milestones{/number}","notifications_url":"https://api.github.com/repos/goodeats/wdi_8_js_lab_jquery_tic_tac_toe/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/goodeats/wdi_8_js_lab_jquery_tic_tac_toe/labels{/name}","releases_url":"https://api.github.com/repos/goodeats/wdi_8_js_lab_jquery_tic_tac_toe/releases{/id}","created_at":"2015-02-23T20:14:40Z","updated_at":"2015-02-24T04:42:38Z","pushed_at":"2015-02-24T04:42:37Z","git_url":"git://github.com/goodeats/wdi_8_js_lab_jquery_tic_tac_toe.git","ssh_url":"git@github.com:goodeats/wdi_8_js_lab_jquery_tic_tac_toe.git","clone_url":"https://github.com/goodeats/wdi_8_js_lab_jquery_tic_tac_toe.git","svn_url":"https://github.com/goodeats/wdi_8_js_lab_jquery_tic_tac_toe","homepage":null,"size":788,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":"ga-wdi-boston:master","ref":"master","sha":"70467bdaedfb6dfe3bc197fe16f30cfa5331e014","user":{"login":"ga-wdi-boston","id":6361298,"avatar_url":"https://avatars.githubusercontent.com/u/6361298?v=3","gravatar_id":"","url":"https://api.github.com/users/ga-wdi-boston","html_url":"https://github.com/ga-wdi-boston","followers_url":"https://api.github.com/users/ga-wdi-boston/followers","following_url":"https://api.github.com/users/ga-wdi-boston/following{/other_user}","gists_url":"https://api.github.com/users/ga-wdi-boston/gists{/gist_id}","starred_url":"https://api.github.com/users/ga-wdi-boston/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ga-wdi-boston/subscriptions","organizations_url":"https://api.github.com/users/ga-wdi-boston/orgs","repos_url":"https://api.github.com/users/ga-wdi-boston/repos","events_url":"https://api.github.com/users/ga-wdi-boston/events{/privacy}","received_events_url":"https://api.github.com/users/ga-wdi-boston/received_events","type":"Organization","site_admin":false},"repo":{"id":17142196,"name":"wdi_8_js_lab_jquery_tic_tac_toe","full_name":"ga-wdi-boston/wdi_8_js_lab_jquery_tic_tac_toe","owner":{"login":"ga-wdi-boston","id":6361298,"avatar_url":"https://avatars.githubusercontent.com/u/6361298?v=3","gravatar_id":"","url":"https://api.github.com/users/ga-wdi-boston","html_url":"https://github.com/ga-wdi-boston","followers_url":"https://api.github.com/users/ga-wdi-boston/followers","following_url":"https://api.github.com/users/ga-wdi-boston/following{/other_user}","gists_url":"https://api.github.com/users/ga-wdi-boston/gists{/gist_id}","starred_url":"https://api.github.com/users/ga-wdi-boston/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ga-wdi-boston/subscriptions","organizations_url":"https://api.github.com/users/ga-wdi-boston/orgs","repos_url":"https://api.github.com/users/ga-wdi-boston/repos","events_url":"https://api.github.com/users/ga-wdi-boston/events{/privacy}","received_events_url":"https://api.github.com/users/ga-wdi-boston/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ga-wdi-boston/wdi_8_js_lab_jquery_tic_tac_toe","description":"","fork":false,"url":"https://api.github.com/repos/ga-wdi-boston/wdi_8_js_lab_jquery_tic_tac_toe","forks_url":"https://api.github.com/repos/ga-wdi-boston/wdi_8_js_lab_jquery_tic_tac_toe/forks","keys_url":"https://api.github.com/repos/ga-wdi-boston/wdi_8_js_lab_jquery_tic_tac_toe/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ga-wdi-boston/wdi_8_js_lab_jquery_tic_tac_toe/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ga-wdi-boston/wdi_8_js_lab_jquery_tic_tac_toe/teams","hooks_url":"https://api.github.com/repos/ga-wdi-boston/wdi_8_js_lab_jquery_tic_tac_toe/hooks","issue_events_url":"https://api.github.com/repos/ga-wdi-boston/wdi_8_js_lab_jquery_tic_tac_toe/issues/events{/number}","events_url":"https://api.github.com/repos/ga-wdi-boston/wdi_8_js_lab_jquery_tic_tac_toe/events","assignees_url":"https://api.github.com/repos/ga-wdi-boston/wdi_8_js_lab_jquery_tic_tac_toe/assignees{/user}","branches_url":"https://api.github.com/repos/ga-wdi-boston/wdi_8_js_lab_jquery_tic_tac_toe/branches{/branch}","tags_url":"https://api.github.com/repos/ga-wdi-boston/wdi_8_js_lab_jquery_tic_tac_toe/tags","blobs_url":"https://api.github.com/repos/ga-wdi-boston/wdi_8_js_lab_jquery_tic_tac_toe/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ga-wdi-boston/wdi_8_js_lab_jquery_tic_tac_toe/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ga-wdi-boston/wdi_8_js_lab_jquery_tic_tac_toe/git/refs{/sha}","trees_url":"https://api.github.com/repos/ga-wdi-boston/wdi_8_js_lab_jquery_tic_tac_toe/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ga-wdi-boston/wdi_8_js_lab_jquery_tic_tac_toe/statuses/{sha}","languages_url":"https://api.github.com/repos/ga-wdi-boston/wdi_8_js_lab_jquery_tic_tac_toe/languages","stargazers_url":"https://api.github.com/repos/ga-wdi-boston/wdi_8_js_lab_jquery_tic_tac_toe/stargazers","contributors_url":"https://api.github.com/repos/ga-wdi-boston/wdi_8_js_lab_jquery_tic_tac_toe/contributors","subscribers_url":"https://api.github.com/repos/ga-wdi-boston/wdi_8_js_lab_jquery_tic_tac_toe/subscribers","subscription_url":"https://api.github.com/repos/ga-wdi-boston/wdi_8_js_lab_jquery_tic_tac_toe/subscription","commits_url":"https://api.github.com/repos/ga-wdi-boston/wdi_8_js_lab_jquery_tic_tac_toe/commits{/sha}","git_commits_url":"https://api.github.com/repos/ga-wdi-boston/wdi_8_js_lab_jquery_tic_tac_toe/git/commits{/sha}","comments_url":"https://api.github.com/repos/ga-wdi-boston/wdi_8_js_lab_jquery_tic_tac_toe/comments{/number}","issue_comment_url":"https://api.github.com/repos/ga-wdi-boston/wdi_8_js_lab_jquery_tic_tac_toe/issues/comments{/number}","contents_url":"https://api.github.com/repos/ga-wdi-boston/wdi_8_js_lab_jquery_tic_tac_toe/contents/{+path}","compare_url":"https://api.github.com/repos/ga-wdi-boston/wdi_8_js_lab_jquery_tic_tac_toe/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ga-wdi-boston/wdi_8_js_lab_jquery_tic_tac_toe/merges","archive_url":"https://api.github.com/repos/ga-wdi-boston/wdi_8_js_lab_jquery_tic_tac_toe/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ga-wdi-boston/wdi_8_js_lab_jquery_tic_tac_toe/downloads","issues_url":"https://api.github.com/repos/ga-wdi-boston/wdi_8_js_lab_jquery_tic_tac_toe/issues{/number}","pulls_url":"https://api.github.com/repos/ga-wdi-boston/wdi_8_js_lab_jquery_tic_tac_toe/pulls{/number}","milestones_url":"https://api.github.com/repos/ga-wdi-boston/wdi_8_js_lab_jquery_tic_tac_toe/milestones{/number}","notifications_url":"https://api.github.com/repos/ga-wdi-boston/wdi_8_js_lab_jquery_tic_tac_toe/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ga-wdi-boston/wdi_8_js_lab_jquery_tic_tac_toe/labels{/name}","releases_url":"https://api.github.com/repos/ga-wdi-boston/wdi_8_js_lab_jquery_tic_tac_toe/releases{/id}","created_at":"2014-02-24T16:21:16Z","updated_at":"2015-02-10T02:53:29Z","pushed_at":"2015-02-10T02:53:29Z","git_url":"git://github.com/ga-wdi-boston/wdi_8_js_lab_jquery_tic_tac_toe.git","ssh_url":"git@github.com:ga-wdi-boston/wdi_8_js_lab_jquery_tic_tac_toe.git","clone_url":"https://github.com/ga-wdi-boston/wdi_8_js_lab_jquery_tic_tac_toe.git","svn_url":"https://github.com/ga-wdi-boston/wdi_8_js_lab_jquery_tic_tac_toe","homepage":null,"size":788,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":36,"mirror_url":null,"open_issues_count":22,"forks":36,"open_issues":22,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ga-wdi-boston/wdi_8_js_lab_jquery_tic_tac_toe/pulls/5"},"html":{"href":"https://github.com/ga-wdi-boston/wdi_8_js_lab_jquery_tic_tac_toe/pull/5"},"issue":{"href":"https://api.github.com/repos/ga-wdi-boston/wdi_8_js_lab_jquery_tic_tac_toe/issues/5"},"comments":{"href":"https://api.github.com/repos/ga-wdi-boston/wdi_8_js_lab_jquery_tic_tac_toe/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/ga-wdi-boston/wdi_8_js_lab_jquery_tic_tac_toe/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/ga-wdi-boston/wdi_8_js_lab_jquery_tic_tac_toe/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ga-wdi-boston/wdi_8_js_lab_jquery_tic_tac_toe/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/ga-wdi-boston/wdi_8_js_lab_jquery_tic_tac_toe/statuses/c3b0819edcf12a3c6b2f6816d1ca784093195746"}}}}