{"action":"closed","issue":{"url":"https://api.github.com/repos/playcanvas/engine/issues/232","labels_url":"https://api.github.com/repos/playcanvas/engine/issues/232/labels{/name}","comments_url":"https://api.github.com/repos/playcanvas/engine/issues/232/comments","events_url":"https://api.github.com/repos/playcanvas/engine/issues/232/events","html_url":"https://github.com/playcanvas/engine/issues/232","id":68699675,"number":232,"title":"Script initialize() can be triggered twice","user":{"login":"daredevildave","id":504980,"avatar_url":"https://avatars.githubusercontent.com/u/504980?v=3","gravatar_id":"","url":"https://api.github.com/users/daredevildave","html_url":"https://github.com/daredevildave","followers_url":"https://api.github.com/users/daredevildave/followers","following_url":"https://api.github.com/users/daredevildave/following{/other_user}","gists_url":"https://api.github.com/users/daredevildave/gists{/gist_id}","starred_url":"https://api.github.com/users/daredevildave/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daredevildave/subscriptions","organizations_url":"https://api.github.com/users/daredevildave/orgs","repos_url":"https://api.github.com/users/daredevildave/repos","events_url":"https://api.github.com/users/daredevildave/events{/privacy}","received_events_url":"https://api.github.com/users/daredevildave/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/playcanvas/engine/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":{"login":"vkalpias","id":850969,"avatar_url":"https://avatars.githubusercontent.com/u/850969?v=3","gravatar_id":"","url":"https://api.github.com/users/vkalpias","html_url":"https://github.com/vkalpias","followers_url":"https://api.github.com/users/vkalpias/followers","following_url":"https://api.github.com/users/vkalpias/following{/other_user}","gists_url":"https://api.github.com/users/vkalpias/gists{/gist_id}","starred_url":"https://api.github.com/users/vkalpias/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vkalpias/subscriptions","organizations_url":"https://api.github.com/users/vkalpias/orgs","repos_url":"https://api.github.com/users/vkalpias/repos","events_url":"https://api.github.com/users/vkalpias/events{/privacy}","received_events_url":"https://api.github.com/users/vkalpias/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2015-04-15T14:39:08Z","updated_at":"2015-08-10T16:25:24Z","closed_at":"2015-08-10T16:25:24Z","body":"If an Entity is disabled at runtime but is enabled in the initialize() method of a script that runs before it in the hierarchy. It will be initialized twice. Once in onEnable, and once in the normal initialize phase."}}