Are "type" properties still needed?
See original GitHub issueAs per #7291, the type property was added to objects because the closure compiler was anonymizing constructors. Since switching to a modular build this should no longer be a problem, and indeed running the following:
for(let p in THREE){
if(typeof THREE[p] === 'function'){
try{
console.log((new THREE[p]()).constructor.name);
}
catch(e){
// console.log(e);
}
}
}
outputs the correct names: FogExp2 Fog Scene LensFlare Sprite LOD Skeleton Bone Mesh LineSegments …
and so on.
Is this property still needed? Or can it be refactored out?
Issue Analytics
- State:
- Created 7 years ago
- Comments:9 (6 by maintainers)
Top Results From Across the Web
Is Vendor Prefixing Dead? - CSS-Tricks
Let's take a quick stroll down memory-lane to revisit how vendor prefixing CSS properties came to be. I hope I don't trigger PTSD...
Read more >Like-Kind Exchanges - Real Estate Tax Tips - IRS
An exchange of real property held primarily for sale still does not qualify as a like-kind exchange. A transition rule in the new...
Read more >Introduction to data types and field properties - Microsoft Support
This article describes the data types and other field properties available in Access, and includes additional information in a detailed data type reference ......
Read more >Universal Analytics will be going away - Google Support
On July 1, 2023, standard Universal Analytics properties will stop processing new hits. If you still rely on Universal Analytics, ...
Read more >Dealing with Properties - Martin Fowler
lmost every object you create needs properties : some statement about the object. ... would still be present on those objects that had...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Seems like we still need these… It’s true that the new modular structure retains the function names, but that only works with
three.jsandthree.modules.js.three.min.jsstill obfuscates the function names…Ah, good catch! Thanks for investigating 😃