{"action":"created","issue":{"url":"https://api.github.com/repos/ga-wdi-boston/independent-work/issues/3","labels_url":"https://api.github.com/repos/ga-wdi-boston/independent-work/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/ga-wdi-boston/independent-work/issues/3/comments","events_url":"https://api.github.com/repos/ga-wdi-boston/independent-work/issues/3/events","html_url":"https://github.com/ga-wdi-boston/independent-work/issues/3","id":120853669,"number":3,"title":"Log out not working","user":{"login":"gmankd","id":13753582,"avatar_url":"https://avatars.githubusercontent.com/u/13753582?v=3","gravatar_id":"","url":"https://api.github.com/users/gmankd","html_url":"https://github.com/gmankd","followers_url":"https://api.github.com/users/gmankd/followers","following_url":"https://api.github.com/users/gmankd/following{/other_user}","gists_url":"https://api.github.com/users/gmankd/gists{/gist_id}","starred_url":"https://api.github.com/users/gmankd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gmankd/subscriptions","organizations_url":"https://api.github.com/users/gmankd/orgs","repos_url":"https://api.github.com/users/gmankd/repos","events_url":"https://api.github.com/users/gmankd/events{/privacy}","received_events_url":"https://api.github.com/users/gmankd/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-12-07T19:55:17Z","updated_at":"2015-12-07T20:57:52Z","closed_at":null,"body":"I click on the log out button and get the following (why is this saying login-submit).\r\n\r\nAlso when I check the DOM I get the following.\r\n\r\nUncaught TypeError: cb is not a function. (But it is a function in my ajax).\r\n\r\nlocalhost - - [07/Dec/2015:14:49:47 EST] \"GET /?email=123%40123.com&password=123&login-submit=Log+In HTTP/1.1\" 200 6950\r\nhttp://localhost:5000/ -> /?email=123%40123.com&password=123&login-submit=Log+In\r\nlocalhost - - [07/Dec/2015:14:49:47 EST] \"GET /css/stylesheet.css HTTP/1.1\" 200 4902\r\nhttp://localhost:5000/?email=123%40123.com&password=123&login-submit=Log+In -> /css/stylesheet.css\r\nlocalhost - - [07/Dec/2015:14:49:47 EST] \"GET /js/api.js HTTP/1.1\" 200 5303\r\n"},"comment":{"url":"https://api.github.com/repos/ga-wdi-boston/independent-work/issues/comments/162660145","html_url":"https://github.com/ga-wdi-boston/independent-work/issues/3#issuecomment-162660145","issue_url":"https://api.github.com/repos/ga-wdi-boston/independent-work/issues/3","id":162660145,"user":{"login":"gmankd","id":13753582,"avatar_url":"https://avatars.githubusercontent.com/u/13753582?v=3","gravatar_id":"","url":"https://api.github.com/users/gmankd","html_url":"https://github.com/gmankd","followers_url":"https://api.github.com/users/gmankd/followers","following_url":"https://api.github.com/users/gmankd/following{/other_user}","gists_url":"https://api.github.com/users/gmankd/gists{/gist_id}","starred_url":"https://api.github.com/users/gmankd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gmankd/subscriptions","organizations_url":"https://api.github.com/users/gmankd/orgs","repos_url":"https://api.github.com/users/gmankd/repos","events_url":"https://api.github.com/users/gmankd/events{/privacy}","received_events_url":"https://api.github.com/users/gmankd/received_events","type":"User","site_admin":false},"created_at":"2015-12-07T20:57:52Z","updated_at":"2015-12-07T20:57:52Z","body":"Here is my log out event.\r\n\r\n\r\n $('#logout-button').on('click', function(e) {\r\n            e.preventDefault();\r\n            var credentials = wrap('credentials', form2object(e.target));\r\n            smart_grocery.logout(credentials, function(err, data) {\r\n                if (err) {\r\n                    console.log(err);\r\n                } else {\r\n                token = data.user.token;\r\n                var user_id = data.user.id;\r\n                console.log(data);\r\n                $('.logInForm').show();\r\n                $('#register_form').show();\r\n                $('#logout-button').hide();\r\n                $(\".grocery\").hide();"}}