{"action":"created","issue":{"url":"https://api.github.com/repos/signalpoint/DrupalGap/issues/841","repository_url":"https://api.github.com/repos/signalpoint/DrupalGap","labels_url":"https://api.github.com/repos/signalpoint/DrupalGap/issues/841/labels{/name}","comments_url":"https://api.github.com/repos/signalpoint/DrupalGap/issues/841/comments","events_url":"https://api.github.com/repos/signalpoint/DrupalGap/issues/841/events","html_url":"https://github.com/signalpoint/DrupalGap/issues/841","id":172172028,"number":841,"title":"user_load yields 'undefined'","user":{"login":"mkinnan","id":13283396,"avatar_url":"https://avatars.githubusercontent.com/u/13283396?v=3","gravatar_id":"","url":"https://api.github.com/users/mkinnan","html_url":"https://github.com/mkinnan","followers_url":"https://api.github.com/users/mkinnan/followers","following_url":"https://api.github.com/users/mkinnan/following{/other_user}","gists_url":"https://api.github.com/users/mkinnan/gists{/gist_id}","starred_url":"https://api.github.com/users/mkinnan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mkinnan/subscriptions","organizations_url":"https://api.github.com/users/mkinnan/orgs","repos_url":"https://api.github.com/users/mkinnan/repos","events_url":"https://api.github.com/users/mkinnan/events{/privacy}","received_events_url":"https://api.github.com/users/mkinnan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-19T16:41:02Z","updated_at":"2016-08-19T17:10:58Z","closed_at":null,"body":"I am following the example for user_load:\r\nhttp://docs.drupalgap.org/7/Entities/Users\r\n\r\n    var load_account = user_load(1, {\r\n        success:function(load_account) {\r\n          alert(\"Loaded user \" + load_account.name);\r\n        }\r\n    });\r\n    console.log('--- load_account ---');      \r\n    console.log(load_account);\r\n\r\nThe alert gives the correct username, but the console.log message returns 'undefined'.\r\n\r\nI'm trying to pass the loaded user account to the avatar module to load specific avatars."},"comment":{"url":"https://api.github.com/repos/signalpoint/DrupalGap/issues/comments/241076794","html_url":"https://github.com/signalpoint/DrupalGap/issues/841#issuecomment-241076794","issue_url":"https://api.github.com/repos/signalpoint/DrupalGap/issues/841","id":241076794,"user":{"login":"signalpoint","id":671140,"avatar_url":"https://avatars.githubusercontent.com/u/671140?v=3","gravatar_id":"","url":"https://api.github.com/users/signalpoint","html_url":"https://github.com/signalpoint","followers_url":"https://api.github.com/users/signalpoint/followers","following_url":"https://api.github.com/users/signalpoint/following{/other_user}","gists_url":"https://api.github.com/users/signalpoint/gists{/gist_id}","starred_url":"https://api.github.com/users/signalpoint/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/signalpoint/subscriptions","organizations_url":"https://api.github.com/users/signalpoint/orgs","repos_url":"https://api.github.com/users/signalpoint/repos","events_url":"https://api.github.com/users/signalpoint/events{/privacy}","received_events_url":"https://api.github.com/users/signalpoint/received_events","type":"User","site_admin":false},"created_at":"2016-08-19T17:10:58Z","updated_at":"2016-08-19T17:10:58Z","body":"@mkinnan user_load is an asynchronous call, so `load_account` will only become available inside the `success` callback."}}
{"actor":{"display_login":"signalpoint"}}