{"action":"created","issue":{"url":"https://api.github.com/repos/aframevr/aframe/issues/2745","repository_url":"https://api.github.com/repos/aframevr/aframe","labels_url":"https://api.github.com/repos/aframevr/aframe/issues/2745/labels{/name}","comments_url":"https://api.github.com/repos/aframevr/aframe/issues/2745/comments","events_url":"https://api.github.com/repos/aframevr/aframe/issues/2745/events","html_url":"https://github.com/aframevr/aframe/issues/2745","id":234608367,"number":2745,"title":"Consolidate all component configuration in a single config object","user":{"login":"dmarcos","id":39342,"avatar_url":"https://avatars0.githubusercontent.com/u/39342?v=3","gravatar_id":"","url":"https://api.github.com/users/dmarcos","html_url":"https://github.com/dmarcos","followers_url":"https://api.github.com/users/dmarcos/followers","following_url":"https://api.github.com/users/dmarcos/following{/other_user}","gists_url":"https://api.github.com/users/dmarcos/gists{/gist_id}","starred_url":"https://api.github.com/users/dmarcos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmarcos/subscriptions","organizations_url":"https://api.github.com/users/dmarcos/orgs","repos_url":"https://api.github.com/users/dmarcos/repos","events_url":"https://api.github.com/users/dmarcos/events{/privacy}","received_events_url":"https://api.github.com/users/dmarcos/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2017-06-08T17:57:50Z","updated_at":"2017-06-08T19:05:44Z","closed_at":null,"body":"In discussions over Slack about the need of adding a flag so some components `tick` / `tock` methods have a higher priority made me think. We now have `dependencies`  and `schema` that turn into reserved words. The approach won't scale if we want to keep adding things like the flag mentioned before. We might want to consider consolidating all the fields in a single `config` object:\r\n````javascript\r\nAFRAME.registerComponent('my-component', {\r\n config: {\r\n   dependencies: { ... }, \r\n   schema: { ... },\r\n   priorityTick: true\r\n }, \r\n init: function () { ... },\r\n update: function () {...},\r\n tick: function () { ... }\r\n});\r\n````\r\n"},"comment":{"url":"https://api.github.com/repos/aframevr/aframe/issues/comments/307197886","html_url":"https://github.com/aframevr/aframe/issues/2745#issuecomment-307197886","issue_url":"https://api.github.com/repos/aframevr/aframe/issues/2745","id":307197886,"user":{"login":"wizgrav","id":499393,"avatar_url":"https://avatars3.githubusercontent.com/u/499393?v=3","gravatar_id":"","url":"https://api.github.com/users/wizgrav","html_url":"https://github.com/wizgrav","followers_url":"https://api.github.com/users/wizgrav/followers","following_url":"https://api.github.com/users/wizgrav/following{/other_user}","gists_url":"https://api.github.com/users/wizgrav/gists{/gist_id}","starred_url":"https://api.github.com/users/wizgrav/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wizgrav/subscriptions","organizations_url":"https://api.github.com/users/wizgrav/orgs","repos_url":"https://api.github.com/users/wizgrav/repos","events_url":"https://api.github.com/users/wizgrav/events{/privacy}","received_events_url":"https://api.github.com/users/wizgrav/received_events","type":"User","site_admin":false},"created_at":"2017-06-08T19:05:44Z","updated_at":"2017-06-08T19:05:44Z","body":"@donmccurdy I think the point is to keep prototype pollution to a minimum. The property name could vary, for instance I was thinking of \"meta\" or something, but it doesn't really make a difference to me at least"}}
{"actor":{"display_login":"wizgrav"}}