-
-
Notifications
You must be signed in to change notification settings - Fork 35.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
instanceof and architecture for extension #5673
Comments
I don't understand the conclusion |
Hi @kumavis . This technique can you use proxy functions or simply replace them by other no need to modify the source code. A example like this http://sunag.github.io/Oimo.js-Lab/test_bvh.html where replaces the functions flatten bone matrices native for a custom, such things can be done as a plugin since it uses prototype, besides the hierarchy based on prototype or similar be father of object-oriented language. Cheers. |
+1 – discussed in this comment of #5886 |
@sunag thanks for the suggestion, I think its appropriate to fix the way this is being handled in the source. |
Hi @mrdoob.
Have you ever thought of changing the architecture with prototype to reduce the number of instanceof on the code? This would help to extend and optimizes the project for many instances.
Another thing also applied to shaders. At the time I used wanted to create a Layered Texture as I did in Flash (SEA3D) but found no alternative to extends without change the root code. Today this is possible with the new changes in r69 from prototype class?
My benchmarking about instanceof and prototype:
Thanks,
Cheers.
The text was updated successfully, but these errors were encountered: