{"action":"created","comment":{"url":"https://api.github.com/repos/openstax/tutor-js/pulls/comments/26600769","id":26600769,"diff_hunk":"@@ -0,0 +1,12 @@\n+$ = require 'jquery'\n+\n+module.exports =\n+  # getFlux: -> {store, actions}\n+  # getId: -> id \n+  componentDidMount: ->\n+    $(window).on(\"beforeunload\", @confirmLeave)","path":"src/components/confirm-leave-mixin.cjsx","position":7,"original_position":7,"commit_id":"4ce43ea08256e2b4bba34fdb5890203ba33444de","original_commit_id":"12f5dd558b04e862b2d6c7e2c7386d32a7d7349e","user":{"login":"jivewise","id":6434717,"avatar_url":"https://avatars.githubusercontent.com/u/6434717?v=3","gravatar_id":"","url":"https://api.github.com/users/jivewise","html_url":"https://github.com/jivewise","followers_url":"https://api.github.com/users/jivewise/followers","following_url":"https://api.github.com/users/jivewise/following{/other_user}","gists_url":"https://api.github.com/users/jivewise/gists{/gist_id}","starred_url":"https://api.github.com/users/jivewise/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jivewise/subscriptions","organizations_url":"https://api.github.com/users/jivewise/orgs","repos_url":"https://api.github.com/users/jivewise/repos","events_url":"https://api.github.com/users/jivewise/events{/privacy}","received_events_url":"https://api.github.com/users/jivewise/received_events","type":"User","site_admin":false},"body":"Should we avoid jQuery?  I told Fred the other day to go ahead and use it where it was convenient.","created_at":"2015-03-17T18:21:27Z","updated_at":"2015-03-17T18:21:27Z","html_url":"https://github.com/openstax/tutor-js/pull/54#discussion_r26600769","pull_request_url":"https://api.github.com/repos/openstax/tutor-js/pulls/54","_links":{"self":{"href":"https://api.github.com/repos/openstax/tutor-js/pulls/comments/26600769"},"html":{"href":"https://github.com/openstax/tutor-js/pull/54#discussion_r26600769"},"pull_request":{"href":"https://api.github.com/repos/openstax/tutor-js/pulls/54"}}},"pull_request":{"url":"https://api.github.com/repos/openstax/tutor-js/pulls/54","id":31352321,"html_url":"https://github.com/openstax/tutor-js/pull/54","diff_url":"https://github.com/openstax/tutor-js/pull/54.diff","patch_url":"https://github.com/openstax/tutor-js/pull/54.patch","issue_url":"https://api.github.com/repos/openstax/tutor-js/issues/54","number":54,"state":"open","locked":false,"title":"Adding in ConfirmLeaveMixin","user":{"login":"jivewise","id":6434717,"avatar_url":"https://avatars.githubusercontent.com/u/6434717?v=3","gravatar_id":"","url":"https://api.github.com/users/jivewise","html_url":"https://github.com/jivewise","followers_url":"https://api.github.com/users/jivewise/followers","following_url":"https://api.github.com/users/jivewise/following{/other_user}","gists_url":"https://api.github.com/users/jivewise/gists{/gist_id}","starred_url":"https://api.github.com/users/jivewise/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jivewise/subscriptions","organizations_url":"https://api.github.com/users/jivewise/orgs","repos_url":"https://api.github.com/users/jivewise/repos","events_url":"https://api.github.com/users/jivewise/events{/privacy}","received_events_url":"https://api.github.com/users/jivewise/received_events","type":"User","site_admin":false},"body":"\r\n![screen shot 2015-03-17 at 12 29 35 pm](https://cloud.githubusercontent.com/assets/6434717/6692155/5b56a55e-cca1-11e4-93c2-6e356b6ee479.png)\r\n\r\n","created_at":"2015-03-17T16:30:39Z","updated_at":"2015-03-17T18:21:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5379c6bd4fc162925294b222319d610934c0251b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/openstax/tutor-js/pulls/54/commits","review_comments_url":"https://api.github.com/repos/openstax/tutor-js/pulls/54/comments","review_comment_url":"https://api.github.com/repos/openstax/tutor-js/pulls/comments{/number}","comments_url":"https://api.github.com/repos/openstax/tutor-js/issues/54/comments","statuses_url":"https://api.github.com/repos/openstax/tutor-js/statuses/4ce43ea08256e2b4bba34fdb5890203ba33444de","head":{"label":"openstax:confirm-leave-message","ref":"confirm-leave-message","sha":"4ce43ea08256e2b4bba34fdb5890203ba33444de","user":{"login":"openstax","id":3805549,"avatar_url":"https://avatars.githubusercontent.com/u/3805549?v=3","gravatar_id":"","url":"https://api.github.com/users/openstax","html_url":"https://github.com/openstax","followers_url":"https://api.github.com/users/openstax/followers","following_url":"https://api.github.com/users/openstax/following{/other_user}","gists_url":"https://api.github.com/users/openstax/gists{/gist_id}","starred_url":"https://api.github.com/users/openstax/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openstax/subscriptions","organizations_url":"https://api.github.com/users/openstax/orgs","repos_url":"https://api.github.com/users/openstax/repos","events_url":"https://api.github.com/users/openstax/events{/privacy}","received_events_url":"https://api.github.com/users/openstax/received_events","type":"Organization","site_admin":false},"repo":{"id":24433756,"name":"tutor-js","full_name":"openstax/tutor-js","owner":{"login":"openstax","id":3805549,"avatar_url":"https://avatars.githubusercontent.com/u/3805549?v=3","gravatar_id":"","url":"https://api.github.com/users/openstax","html_url":"https://github.com/openstax","followers_url":"https://api.github.com/users/openstax/followers","following_url":"https://api.github.com/users/openstax/following{/other_user}","gists_url":"https://api.github.com/users/openstax/gists{/gist_id}","starred_url":"https://api.github.com/users/openstax/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openstax/subscriptions","organizations_url":"https://api.github.com/users/openstax/orgs","repos_url":"https://api.github.com/users/openstax/repos","events_url":"https://api.github.com/users/openstax/events{/privacy}","received_events_url":"https://api.github.com/users/openstax/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/openstax/tutor-js","description":"Javascript frontend for openstax tutor","fork":false,"url":"https://api.github.com/repos/openstax/tutor-js","forks_url":"https://api.github.com/repos/openstax/tutor-js/forks","keys_url":"https://api.github.com/repos/openstax/tutor-js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/openstax/tutor-js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/openstax/tutor-js/teams","hooks_url":"https://api.github.com/repos/openstax/tutor-js/hooks","issue_events_url":"https://api.github.com/repos/openstax/tutor-js/issues/events{/number}","events_url":"https://api.github.com/repos/openstax/tutor-js/events","assignees_url":"https://api.github.com/repos/openstax/tutor-js/assignees{/user}","branches_url":"https://api.github.com/repos/openstax/tutor-js/branches{/branch}","tags_url":"https://api.github.com/repos/openstax/tutor-js/tags","blobs_url":"https://api.github.com/repos/openstax/tutor-js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/openstax/tutor-js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/openstax/tutor-js/git/refs{/sha}","trees_url":"https://api.github.com/repos/openstax/tutor-js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/openstax/tutor-js/statuses/{sha}","languages_url":"https://api.github.com/repos/openstax/tutor-js/languages","stargazers_url":"https://api.github.com/repos/openstax/tutor-js/stargazers","contributors_url":"https://api.github.com/repos/openstax/tutor-js/contributors","subscribers_url":"https://api.github.com/repos/openstax/tutor-js/subscribers","subscription_url":"https://api.github.com/repos/openstax/tutor-js/subscription","commits_url":"https://api.github.com/repos/openstax/tutor-js/commits{/sha}","git_commits_url":"https://api.github.com/repos/openstax/tutor-js/git/commits{/sha}","comments_url":"https://api.github.com/repos/openstax/tutor-js/comments{/number}","issue_comment_url":"https://api.github.com/repos/openstax/tutor-js/issues/comments{/number}","contents_url":"https://api.github.com/repos/openstax/tutor-js/contents/{+path}","compare_url":"https://api.github.com/repos/openstax/tutor-js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/openstax/tutor-js/merges","archive_url":"https://api.github.com/repos/openstax/tutor-js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/openstax/tutor-js/downloads","issues_url":"https://api.github.com/repos/openstax/tutor-js/issues{/number}","pulls_url":"https://api.github.com/repos/openstax/tutor-js/pulls{/number}","milestones_url":"https://api.github.com/repos/openstax/tutor-js/milestones{/number}","notifications_url":"https://api.github.com/repos/openstax/tutor-js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/openstax/tutor-js/labels{/name}","releases_url":"https://api.github.com/repos/openstax/tutor-js/releases{/id}","created_at":"2014-09-24T21:42:26Z","updated_at":"2015-03-17T17:09:03Z","pushed_at":"2015-03-17T17:56:01Z","git_url":"git://github.com/openstax/tutor-js.git","ssh_url":"git@github.com:openstax/tutor-js.git","clone_url":"https://github.com/openstax/tutor-js.git","svn_url":"https://github.com/openstax/tutor-js","homepage":"","size":1555,"stargazers_count":1,"watchers_count":1,"language":"CoffeeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":1,"default_branch":"master"}},"base":{"label":"openstax:master","ref":"master","sha":"6f185003f48aaddb21a5387564bdc85b68fafa9b","user":{"login":"openstax","id":3805549,"avatar_url":"https://avatars.githubusercontent.com/u/3805549?v=3","gravatar_id":"","url":"https://api.github.com/users/openstax","html_url":"https://github.com/openstax","followers_url":"https://api.github.com/users/openstax/followers","following_url":"https://api.github.com/users/openstax/following{/other_user}","gists_url":"https://api.github.com/users/openstax/gists{/gist_id}","starred_url":"https://api.github.com/users/openstax/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openstax/subscriptions","organizations_url":"https://api.github.com/users/openstax/orgs","repos_url":"https://api.github.com/users/openstax/repos","events_url":"https://api.github.com/users/openstax/events{/privacy}","received_events_url":"https://api.github.com/users/openstax/received_events","type":"Organization","site_admin":false},"repo":{"id":24433756,"name":"tutor-js","full_name":"openstax/tutor-js","owner":{"login":"openstax","id":3805549,"avatar_url":"https://avatars.githubusercontent.com/u/3805549?v=3","gravatar_id":"","url":"https://api.github.com/users/openstax","html_url":"https://github.com/openstax","followers_url":"https://api.github.com/users/openstax/followers","following_url":"https://api.github.com/users/openstax/following{/other_user}","gists_url":"https://api.github.com/users/openstax/gists{/gist_id}","starred_url":"https://api.github.com/users/openstax/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openstax/subscriptions","organizations_url":"https://api.github.com/users/openstax/orgs","repos_url":"https://api.github.com/users/openstax/repos","events_url":"https://api.github.com/users/openstax/events{/privacy}","received_events_url":"https://api.github.com/users/openstax/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/openstax/tutor-js","description":"Javascript frontend for openstax tutor","fork":false,"url":"https://api.github.com/repos/openstax/tutor-js","forks_url":"https://api.github.com/repos/openstax/tutor-js/forks","keys_url":"https://api.github.com/repos/openstax/tutor-js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/openstax/tutor-js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/openstax/tutor-js/teams","hooks_url":"https://api.github.com/repos/openstax/tutor-js/hooks","issue_events_url":"https://api.github.com/repos/openstax/tutor-js/issues/events{/number}","events_url":"https://api.github.com/repos/openstax/tutor-js/events","assignees_url":"https://api.github.com/repos/openstax/tutor-js/assignees{/user}","branches_url":"https://api.github.com/repos/openstax/tutor-js/branches{/branch}","tags_url":"https://api.github.com/repos/openstax/tutor-js/tags","blobs_url":"https://api.github.com/repos/openstax/tutor-js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/openstax/tutor-js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/openstax/tutor-js/git/refs{/sha}","trees_url":"https://api.github.com/repos/openstax/tutor-js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/openstax/tutor-js/statuses/{sha}","languages_url":"https://api.github.com/repos/openstax/tutor-js/languages","stargazers_url":"https://api.github.com/repos/openstax/tutor-js/stargazers","contributors_url":"https://api.github.com/repos/openstax/tutor-js/contributors","subscribers_url":"https://api.github.com/repos/openstax/tutor-js/subscribers","subscription_url":"https://api.github.com/repos/openstax/tutor-js/subscription","commits_url":"https://api.github.com/repos/openstax/tutor-js/commits{/sha}","git_commits_url":"https://api.github.com/repos/openstax/tutor-js/git/commits{/sha}","comments_url":"https://api.github.com/repos/openstax/tutor-js/comments{/number}","issue_comment_url":"https://api.github.com/repos/openstax/tutor-js/issues/comments{/number}","contents_url":"https://api.github.com/repos/openstax/tutor-js/contents/{+path}","compare_url":"https://api.github.com/repos/openstax/tutor-js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/openstax/tutor-js/merges","archive_url":"https://api.github.com/repos/openstax/tutor-js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/openstax/tutor-js/downloads","issues_url":"https://api.github.com/repos/openstax/tutor-js/issues{/number}","pulls_url":"https://api.github.com/repos/openstax/tutor-js/pulls{/number}","milestones_url":"https://api.github.com/repos/openstax/tutor-js/milestones{/number}","notifications_url":"https://api.github.com/repos/openstax/tutor-js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/openstax/tutor-js/labels{/name}","releases_url":"https://api.github.com/repos/openstax/tutor-js/releases{/id}","created_at":"2014-09-24T21:42:26Z","updated_at":"2015-03-17T17:09:03Z","pushed_at":"2015-03-17T17:56:01Z","git_url":"git://github.com/openstax/tutor-js.git","ssh_url":"git@github.com:openstax/tutor-js.git","clone_url":"https://github.com/openstax/tutor-js.git","svn_url":"https://github.com/openstax/tutor-js","homepage":"","size":1555,"stargazers_count":1,"watchers_count":1,"language":"CoffeeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/openstax/tutor-js/pulls/54"},"html":{"href":"https://github.com/openstax/tutor-js/pull/54"},"issue":{"href":"https://api.github.com/repos/openstax/tutor-js/issues/54"},"comments":{"href":"https://api.github.com/repos/openstax/tutor-js/issues/54/comments"},"review_comments":{"href":"https://api.github.com/repos/openstax/tutor-js/pulls/54/comments"},"review_comment":{"href":"https://api.github.com/repos/openstax/tutor-js/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/openstax/tutor-js/pulls/54/commits"},"statuses":{"href":"https://api.github.com/repos/openstax/tutor-js/statuses/4ce43ea08256e2b4bba34fdb5890203ba33444de"}}}}