{"action":"closed","issue":{"url":"https://api.github.com/repos/spite/ThreeJSEditorExtension/issues/9","labels_url":"https://api.github.com/repos/spite/ThreeJSEditorExtension/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/spite/ThreeJSEditorExtension/issues/9/comments","events_url":"https://api.github.com/repos/spite/ThreeJSEditorExtension/issues/9/events","html_url":"https://github.com/spite/ThreeJSEditorExtension/issues/9","id":98474242,"number":9,"title":"black magic in a .unshift ?","user":{"login":"jeromeetienne","id":252962,"avatar_url":"https://avatars.githubusercontent.com/u/252962?v=3","gravatar_id":"","url":"https://api.github.com/users/jeromeetienne","html_url":"https://github.com/jeromeetienne","followers_url":"https://api.github.com/users/jeromeetienne/followers","following_url":"https://api.github.com/users/jeromeetienne/following{/other_user}","gists_url":"https://api.github.com/users/jeromeetienne/gists{/gist_id}","starred_url":"https://api.github.com/users/jeromeetienne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeromeetienne/subscriptions","organizations_url":"https://api.github.com/users/jeromeetienne/orgs","repos_url":"https://api.github.com/users/jeromeetienne/repos","events_url":"https://api.github.com/users/jeromeetienne/events{/privacy}","received_events_url":"https://api.github.com/users/jeromeetienne/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-07-31T21:30:30Z","updated_at":"2015-08-01T15:33:45Z","closed_at":"2015-08-01T15:33:45Z","body":"you are still mistifying me on this ```.unshift()``` :) if i put ```.push``` here, all objects are reported as ```Object3D``` instead...\r\n\r\nwhat is the black magic ?\r\n\r\n```\r\n\tfunction extractTypes() {\r\n\r\n\t\tfor( var j in THREE ) {\r\n\t\t\tif( typeof THREE[ j ] === 'function' ) {\r\n\t\t\t\ttypes.unshift( j );\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}\r\n```"}}