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

refactor: use better mapping logic in _setupBlocksContainerEvents #4039

Merged
merged 2 commits into from
Oct 27, 2024

Conversation

retrogtx
Copy link
Contributor

  • remove old deprecated var
  • implement forEach for iterating over values

@@ -1755,26 +1755,17 @@ class Activity {
* Sets up block actions with regards to different mouse events
*/
this._setupBlocksContainerEvents = () => {
const moving = false;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where does moving get defined?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shoot, my fault.

I was probably thinking of moving the variable outside the function to do something but forgot to do so.
will revert this.

@walterbender walterbender merged commit b5be318 into sugarlabs:master Oct 27, 2024
3 checks passed
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.

2 participants