{"action":"opened","issue":{"url":"https://api.github.com/repos/ga-wdi-boston/game-project/issues/200","repository_url":"https://api.github.com/repos/ga-wdi-boston/game-project","labels_url":"https://api.github.com/repos/ga-wdi-boston/game-project/issues/200/labels{/name}","comments_url":"https://api.github.com/repos/ga-wdi-boston/game-project/issues/200/comments","events_url":"https://api.github.com/repos/ga-wdi-boston/game-project/issues/200/events","html_url":"https://github.com/ga-wdi-boston/game-project/issues/200","id":158568721,"number":200,"title":"Variable established in ui console log, when passed to api, is undefined","user":{"login":"logicmyth","id":18650954,"avatar_url":"https://avatars.githubusercontent.com/u/18650954?v=3","gravatar_id":"","url":"https://api.github.com/users/logicmyth","html_url":"https://github.com/logicmyth","followers_url":"https://api.github.com/users/logicmyth/followers","following_url":"https://api.github.com/users/logicmyth/following{/other_user}","gists_url":"https://api.github.com/users/logicmyth/gists{/gist_id}","starred_url":"https://api.github.com/users/logicmyth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/logicmyth/subscriptions","organizations_url":"https://api.github.com/users/logicmyth/orgs","repos_url":"https://api.github.com/users/logicmyth/repos","events_url":"https://api.github.com/users/logicmyth/events{/privacy}","received_events_url":"https://api.github.com/users/logicmyth/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-06-05T19:01:04Z","updated_at":"2016-06-05T19:01:04Z","closed_at":null,"body":"I am trying to update my game state. I have isolated the game id by a ui function, proven successful by console log. \r\n![image](https://cloud.githubusercontent.com/assets/18650954/15807488/7ceb8bda-2b2d-11e6-8567-ffbb90257dc2.png)\r\nThe variable is returned in the same ui function. I then use the returned variable (by executing the function) in AJAX, in the url so it can locate the specific game. \r\nThe AJAX url looks like this:\r\n    url: app.host + \"/games/\" + ui.createSuccess(),\r\n\r\nI also attempted to console.log(createdGame) in the api. Created game was defined in the ui but the api console.log is undefined.\r\nSo, to me, this points to some transfer property between ui and api.\r\nconst ui = require('./ui.js');\r\nis at the top of my api and I do not have a DOM error saying it cannot read the module. "}}
{"actor":{"display_login":"logicmyth"}}