{"action":"created","comment":{"url":"https://api.github.com/repos/sprky/sprky_chess/pulls/comments/28150308","id":28150308,"diff_hunk":"@@ -109,4 +110,27 @@ $(document).ready(function() {\n       }\n     });   \n   }\n-});\n\\ No newline at end of file\n+\n+  var gameID = \"game\"+ $('#gameboard').data('game-id')\n+  var fbRef = new Firebase('https://amber-inferno-5356.firebaseio.com/');\n+  var indexRef = fbRef.child(gameID);\n+\n+  function updateGame(snap, Id) {\n+    if (snap.key() == 'game')\n+      console.log('refresh game # ',snap.val() );\n+      console.log(snap.val());","path":"app/assets/javascripts/application.js","position":33,"original_position":33,"commit_id":"45c3836d4fc1ea5151620ab895db4c834a6832ed","original_commit_id":"45c3836d4fc1ea5151620ab895db4c834a6832ed","user":{"login":"kenmazaika","id":233615,"avatar_url":"https://avatars.githubusercontent.com/u/233615?v=3","gravatar_id":"","url":"https://api.github.com/users/kenmazaika","html_url":"https://github.com/kenmazaika","followers_url":"https://api.github.com/users/kenmazaika/followers","following_url":"https://api.github.com/users/kenmazaika/following{/other_user}","gists_url":"https://api.github.com/users/kenmazaika/gists{/gist_id}","starred_url":"https://api.github.com/users/kenmazaika/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kenmazaika/subscriptions","organizations_url":"https://api.github.com/users/kenmazaika/orgs","repos_url":"https://api.github.com/users/kenmazaika/repos","events_url":"https://api.github.com/users/kenmazaika/events{/privacy}","received_events_url":"https://api.github.com/users/kenmazaika/received_events","type":"User","site_admin":false},"body":"console.log breaks certain versions of IE.  These should be removed.","created_at":"2015-04-10T14:48:51Z","updated_at":"2015-04-10T14:48:51Z","html_url":"https://github.com/sprky/sprky_chess/pull/95#discussion_r28150308","pull_request_url":"https://api.github.com/repos/sprky/sprky_chess/pulls/95","_links":{"self":{"href":"https://api.github.com/repos/sprky/sprky_chess/pulls/comments/28150308"},"html":{"href":"https://github.com/sprky/sprky_chess/pull/95#discussion_r28150308"},"pull_request":{"href":"https://api.github.com/repos/sprky/sprky_chess/pulls/95"}}},"pull_request":{"url":"https://api.github.com/repos/sprky/sprky_chess/pulls/95","id":33052958,"html_url":"https://github.com/sprky/sprky_chess/pull/95","diff_url":"https://github.com/sprky/sprky_chess/pull/95.diff","patch_url":"https://github.com/sprky/sprky_chess/pull/95.patch","issue_url":"https://api.github.com/repos/sprky/sprky_chess/issues/95","number":95,"state":"open","locked":false,"title":"Firebase","user":{"login":"washburnad","id":10605900,"avatar_url":"https://avatars.githubusercontent.com/u/10605900?v=3","gravatar_id":"","url":"https://api.github.com/users/washburnad","html_url":"https://github.com/washburnad","followers_url":"https://api.github.com/users/washburnad/followers","following_url":"https://api.github.com/users/washburnad/following{/other_user}","gists_url":"https://api.github.com/users/washburnad/gists{/gist_id}","starred_url":"https://api.github.com/users/washburnad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/washburnad/subscriptions","organizations_url":"https://api.github.com/users/washburnad/orgs","repos_url":"https://api.github.com/users/washburnad/repos","events_url":"https://api.github.com/users/washburnad/events{/privacy}","received_events_url":"https://api.github.com/users/washburnad/received_events","type":"User","site_admin":false},"body":"Live refresh of game when other player makes a move\r\nFixed bug in games controller to prevent error if url is entered directly for non-existant game  e.g (/games/39)\r\n","created_at":"2015-04-10T14:45:52Z","updated_at":"2015-04-10T14:48:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e77cfdb79e471a73a6fa9ae0a4d57a715b6ac7a0","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/sprky/sprky_chess/pulls/95/commits","review_comments_url":"https://api.github.com/repos/sprky/sprky_chess/pulls/95/comments","review_comment_url":"https://api.github.com/repos/sprky/sprky_chess/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sprky/sprky_chess/issues/95/comments","statuses_url":"https://api.github.com/repos/sprky/sprky_chess/statuses/45c3836d4fc1ea5151620ab895db4c834a6832ed","head":{"label":"sprky:firebase","ref":"firebase","sha":"45c3836d4fc1ea5151620ab895db4c834a6832ed","user":{"login":"sprky","id":11095994,"avatar_url":"https://avatars.githubusercontent.com/u/11095994?v=3","gravatar_id":"","url":"https://api.github.com/users/sprky","html_url":"https://github.com/sprky","followers_url":"https://api.github.com/users/sprky/followers","following_url":"https://api.github.com/users/sprky/following{/other_user}","gists_url":"https://api.github.com/users/sprky/gists{/gist_id}","starred_url":"https://api.github.com/users/sprky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sprky/subscriptions","organizations_url":"https://api.github.com/users/sprky/orgs","repos_url":"https://api.github.com/users/sprky/repos","events_url":"https://api.github.com/users/sprky/events{/privacy}","received_events_url":"https://api.github.com/users/sprky/received_events","type":"Organization","site_admin":false},"repo":{"id":31082633,"name":"sprky_chess","full_name":"sprky/sprky_chess","owner":{"login":"sprky","id":11095994,"avatar_url":"https://avatars.githubusercontent.com/u/11095994?v=3","gravatar_id":"","url":"https://api.github.com/users/sprky","html_url":"https://github.com/sprky","followers_url":"https://api.github.com/users/sprky/followers","following_url":"https://api.github.com/users/sprky/following{/other_user}","gists_url":"https://api.github.com/users/sprky/gists{/gist_id}","starred_url":"https://api.github.com/users/sprky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sprky/subscriptions","organizations_url":"https://api.github.com/users/sprky/orgs","repos_url":"https://api.github.com/users/sprky/repos","events_url":"https://api.github.com/users/sprky/events{/privacy}","received_events_url":"https://api.github.com/users/sprky/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sprky/sprky_chess","description":"Sparky Chess app for Firehose group project","fork":false,"url":"https://api.github.com/repos/sprky/sprky_chess","forks_url":"https://api.github.com/repos/sprky/sprky_chess/forks","keys_url":"https://api.github.com/repos/sprky/sprky_chess/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sprky/sprky_chess/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sprky/sprky_chess/teams","hooks_url":"https://api.github.com/repos/sprky/sprky_chess/hooks","issue_events_url":"https://api.github.com/repos/sprky/sprky_chess/issues/events{/number}","events_url":"https://api.github.com/repos/sprky/sprky_chess/events","assignees_url":"https://api.github.com/repos/sprky/sprky_chess/assignees{/user}","branches_url":"https://api.github.com/repos/sprky/sprky_chess/branches{/branch}","tags_url":"https://api.github.com/repos/sprky/sprky_chess/tags","blobs_url":"https://api.github.com/repos/sprky/sprky_chess/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sprky/sprky_chess/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sprky/sprky_chess/git/refs{/sha}","trees_url":"https://api.github.com/repos/sprky/sprky_chess/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sprky/sprky_chess/statuses/{sha}","languages_url":"https://api.github.com/repos/sprky/sprky_chess/languages","stargazers_url":"https://api.github.com/repos/sprky/sprky_chess/stargazers","contributors_url":"https://api.github.com/repos/sprky/sprky_chess/contributors","subscribers_url":"https://api.github.com/repos/sprky/sprky_chess/subscribers","subscription_url":"https://api.github.com/repos/sprky/sprky_chess/subscription","commits_url":"https://api.github.com/repos/sprky/sprky_chess/commits{/sha}","git_commits_url":"https://api.github.com/repos/sprky/sprky_chess/git/commits{/sha}","comments_url":"https://api.github.com/repos/sprky/sprky_chess/comments{/number}","issue_comment_url":"https://api.github.com/repos/sprky/sprky_chess/issues/comments{/number}","contents_url":"https://api.github.com/repos/sprky/sprky_chess/contents/{+path}","compare_url":"https://api.github.com/repos/sprky/sprky_chess/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sprky/sprky_chess/merges","archive_url":"https://api.github.com/repos/sprky/sprky_chess/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sprky/sprky_chess/downloads","issues_url":"https://api.github.com/repos/sprky/sprky_chess/issues{/number}","pulls_url":"https://api.github.com/repos/sprky/sprky_chess/pulls{/number}","milestones_url":"https://api.github.com/repos/sprky/sprky_chess/milestones{/number}","notifications_url":"https://api.github.com/repos/sprky/sprky_chess/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sprky/sprky_chess/labels{/name}","releases_url":"https://api.github.com/repos/sprky/sprky_chess/releases{/id}","created_at":"2015-02-20T20:01:15Z","updated_at":"2015-04-10T12:37:35Z","pushed_at":"2015-04-10T14:45:53Z","git_url":"git://github.com/sprky/sprky_chess.git","ssh_url":"git@github.com:sprky/sprky_chess.git","clone_url":"https://github.com/sprky/sprky_chess.git","svn_url":"https://github.com/sprky/sprky_chess","homepage":"http://sprky.herokuapp.com","size":2528,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":6,"forks":0,"open_issues":6,"watchers":1,"default_branch":"master"}},"base":{"label":"sprky:master","ref":"master","sha":"3db5ba1612095d0dca6a464c3c0ccf42524bb832","user":{"login":"sprky","id":11095994,"avatar_url":"https://avatars.githubusercontent.com/u/11095994?v=3","gravatar_id":"","url":"https://api.github.com/users/sprky","html_url":"https://github.com/sprky","followers_url":"https://api.github.com/users/sprky/followers","following_url":"https://api.github.com/users/sprky/following{/other_user}","gists_url":"https://api.github.com/users/sprky/gists{/gist_id}","starred_url":"https://api.github.com/users/sprky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sprky/subscriptions","organizations_url":"https://api.github.com/users/sprky/orgs","repos_url":"https://api.github.com/users/sprky/repos","events_url":"https://api.github.com/users/sprky/events{/privacy}","received_events_url":"https://api.github.com/users/sprky/received_events","type":"Organization","site_admin":false},"repo":{"id":31082633,"name":"sprky_chess","full_name":"sprky/sprky_chess","owner":{"login":"sprky","id":11095994,"avatar_url":"https://avatars.githubusercontent.com/u/11095994?v=3","gravatar_id":"","url":"https://api.github.com/users/sprky","html_url":"https://github.com/sprky","followers_url":"https://api.github.com/users/sprky/followers","following_url":"https://api.github.com/users/sprky/following{/other_user}","gists_url":"https://api.github.com/users/sprky/gists{/gist_id}","starred_url":"https://api.github.com/users/sprky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sprky/subscriptions","organizations_url":"https://api.github.com/users/sprky/orgs","repos_url":"https://api.github.com/users/sprky/repos","events_url":"https://api.github.com/users/sprky/events{/privacy}","received_events_url":"https://api.github.com/users/sprky/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sprky/sprky_chess","description":"Sparky Chess app for Firehose group project","fork":false,"url":"https://api.github.com/repos/sprky/sprky_chess","forks_url":"https://api.github.com/repos/sprky/sprky_chess/forks","keys_url":"https://api.github.com/repos/sprky/sprky_chess/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sprky/sprky_chess/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sprky/sprky_chess/teams","hooks_url":"https://api.github.com/repos/sprky/sprky_chess/hooks","issue_events_url":"https://api.github.com/repos/sprky/sprky_chess/issues/events{/number}","events_url":"https://api.github.com/repos/sprky/sprky_chess/events","assignees_url":"https://api.github.com/repos/sprky/sprky_chess/assignees{/user}","branches_url":"https://api.github.com/repos/sprky/sprky_chess/branches{/branch}","tags_url":"https://api.github.com/repos/sprky/sprky_chess/tags","blobs_url":"https://api.github.com/repos/sprky/sprky_chess/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sprky/sprky_chess/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sprky/sprky_chess/git/refs{/sha}","trees_url":"https://api.github.com/repos/sprky/sprky_chess/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sprky/sprky_chess/statuses/{sha}","languages_url":"https://api.github.com/repos/sprky/sprky_chess/languages","stargazers_url":"https://api.github.com/repos/sprky/sprky_chess/stargazers","contributors_url":"https://api.github.com/repos/sprky/sprky_chess/contributors","subscribers_url":"https://api.github.com/repos/sprky/sprky_chess/subscribers","subscription_url":"https://api.github.com/repos/sprky/sprky_chess/subscription","commits_url":"https://api.github.com/repos/sprky/sprky_chess/commits{/sha}","git_commits_url":"https://api.github.com/repos/sprky/sprky_chess/git/commits{/sha}","comments_url":"https://api.github.com/repos/sprky/sprky_chess/comments{/number}","issue_comment_url":"https://api.github.com/repos/sprky/sprky_chess/issues/comments{/number}","contents_url":"https://api.github.com/repos/sprky/sprky_chess/contents/{+path}","compare_url":"https://api.github.com/repos/sprky/sprky_chess/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sprky/sprky_chess/merges","archive_url":"https://api.github.com/repos/sprky/sprky_chess/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sprky/sprky_chess/downloads","issues_url":"https://api.github.com/repos/sprky/sprky_chess/issues{/number}","pulls_url":"https://api.github.com/repos/sprky/sprky_chess/pulls{/number}","milestones_url":"https://api.github.com/repos/sprky/sprky_chess/milestones{/number}","notifications_url":"https://api.github.com/repos/sprky/sprky_chess/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sprky/sprky_chess/labels{/name}","releases_url":"https://api.github.com/repos/sprky/sprky_chess/releases{/id}","created_at":"2015-02-20T20:01:15Z","updated_at":"2015-04-10T12:37:35Z","pushed_at":"2015-04-10T14:45:53Z","git_url":"git://github.com/sprky/sprky_chess.git","ssh_url":"git@github.com:sprky/sprky_chess.git","clone_url":"https://github.com/sprky/sprky_chess.git","svn_url":"https://github.com/sprky/sprky_chess","homepage":"http://sprky.herokuapp.com","size":2528,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":6,"forks":0,"open_issues":6,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sprky/sprky_chess/pulls/95"},"html":{"href":"https://github.com/sprky/sprky_chess/pull/95"},"issue":{"href":"https://api.github.com/repos/sprky/sprky_chess/issues/95"},"comments":{"href":"https://api.github.com/repos/sprky/sprky_chess/issues/95/comments"},"review_comments":{"href":"https://api.github.com/repos/sprky/sprky_chess/pulls/95/comments"},"review_comment":{"href":"https://api.github.com/repos/sprky/sprky_chess/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sprky/sprky_chess/pulls/95/commits"},"statuses":{"href":"https://api.github.com/repos/sprky/sprky_chess/statuses/45c3836d4fc1ea5151620ab895db4c834a6832ed"}}}}