Skip to content
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

fix: use arrow function in scene.traverse argument #161

Merged

Conversation

gabotechs
Copy link
Contributor

Why

resolves #160

What

The scene.traverse method receives an anonymous function as an argument that leads to this being undefined inside the function body. By using an arrow function we make sure that this references the upper scope class instance.

@vercel
Copy link

vercel bot commented Jun 18, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
three-stdlib ✅ Ready (Inspect) Visit Preview Jun 18, 2022 at 1:46PM (UTC)

@codesandbox-ci
Copy link

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit bf2d661:

Sandbox Source
three-stdlib-ssr Configuration

@CodyJasonBennett CodyJasonBennett merged commit 252f19d into pmndrs:main Jun 18, 2022
@github-actions
Copy link

🎉 This PR is included in version 2.10.3 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Uncaught TypeError: Cannot read properties of undefined (reading 'triangles') on STLExporter.parse
2 participants