Skip to content

Add missing thisValue for forEach #7117

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

Open
wants to merge 1 commit into
base: v4.0.0
Choose a base branch
from

Conversation

TadejZupancic
Copy link
Contributor

This PR (delete as applicable)

  • Fixes a bug

Describe the changes below:

this value was accessed inside the functions in forEach, but the value for this was not provided.
I noticed that in some places var _this = this approach is used for that and in some places this is added as the second parameter of forEach. I added this as the second parameter of forEach to fix that. Maybe it would be good to make it the same everywhere.

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

Successfully merging this pull request may close these issues.

1 participant