{"action":"created","issue":{"url":"https://api.github.com/repos/adngdb/entity-system-js/issues/27","repository_url":"https://api.github.com/repos/adngdb/entity-system-js","labels_url":"https://api.github.com/repos/adngdb/entity-system-js/issues/27/labels{/name}","comments_url":"https://api.github.com/repos/adngdb/entity-system-js/issues/27/comments","events_url":"https://api.github.com/repos/adngdb/entity-system-js/issues/27/events","html_url":"https://github.com/adngdb/entity-system-js/issues/27","id":346527326,"node_id":"MDU6SXNzdWUzNDY1MjczMjY=","number":27,"title":"Wrong method to get component data for an entity in the documentation","user":{"login":"maxailloud","id":792787,"node_id":"MDQ6VXNlcjc5Mjc4Nw==","avatar_url":"https://avatars3.githubusercontent.com/u/792787?v=4","gravatar_id":"","url":"https://api.github.com/users/maxailloud","html_url":"https://github.com/maxailloud","followers_url":"https://api.github.com/users/maxailloud/followers","following_url":"https://api.github.com/users/maxailloud/following{/other_user}","gists_url":"https://api.github.com/users/maxailloud/gists{/gist_id}","starred_url":"https://api.github.com/users/maxailloud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maxailloud/subscriptions","organizations_url":"https://api.github.com/users/maxailloud/orgs","repos_url":"https://api.github.com/users/maxailloud/repos","events_url":"https://api.github.com/users/maxailloud/events{/privacy}","received_events_url":"https://api.github.com/users/maxailloud/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-08-01T09:48:48Z","updated_at":"2018-08-01T10:20:30Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"On https://entity-system-js.readthedocs.io/en/latest/#components it's stated that to get the data of an entity you have to do \r\n```\r\nvar aPositionData = manager.getEntityWithComponent(aPosition, 'Position');\r\nconsole.log(aPositionData.x);\r\n```\r\n\r\nBut it should be \r\n```\r\nvar aPositionData = manager.getComponentDataForEntity('Position', aPosition);\r\nconsole.log(aPositionData.x);\r\n```\r\n\r\nNo idea how to fix the documentation by myself so here we are."},"comment":{"url":"https://api.github.com/repos/adngdb/entity-system-js/issues/comments/409527123","html_url":"https://github.com/adngdb/entity-system-js/issues/27#issuecomment-409527123","issue_url":"https://api.github.com/repos/adngdb/entity-system-js/issues/27","id":409527123,"node_id":"MDEyOklzc3VlQ29tbWVudDQwOTUyNzEyMw==","user":{"login":"maxailloud","id":792787,"node_id":"MDQ6VXNlcjc5Mjc4Nw==","avatar_url":"https://avatars3.githubusercontent.com/u/792787?v=4","gravatar_id":"","url":"https://api.github.com/users/maxailloud","html_url":"https://github.com/maxailloud","followers_url":"https://api.github.com/users/maxailloud/followers","following_url":"https://api.github.com/users/maxailloud/following{/other_user}","gists_url":"https://api.github.com/users/maxailloud/gists{/gist_id}","starred_url":"https://api.github.com/users/maxailloud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maxailloud/subscriptions","organizations_url":"https://api.github.com/users/maxailloud/orgs","repos_url":"https://api.github.com/users/maxailloud/repos","events_url":"https://api.github.com/users/maxailloud/events{/privacy}","received_events_url":"https://api.github.com/users/maxailloud/received_events","type":"User","site_admin":false},"created_at":"2018-08-01T10:20:30Z","updated_at":"2018-08-01T10:20:30Z","author_association":"CONTRIBUTOR","body":"Yes I saw.\r\nMaybe hosting it in the gh-pages could be easier."}}
{"actor":{"display_login":"maxailloud"}}