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

Widget Window port #2668

Merged
merged 3 commits into from
Nov 30, 2020
Merged

Widget Window port #2668

merged 3 commits into from
Nov 30, 2020

Conversation

ricknjacky
Copy link
Member

In continuation of #2656
The js/widgets/widgetWindow port to ES6.

@ricknjacky
Copy link
Member Author

@meganindya pls review
and tell me areas where I can improve, as this porting is a big step and my experience with the codebase is pretty nascent.
So, I'd appreciate you guiding me :)

@meganindya
Copy link
Member

meganindya commented Nov 30, 2020

See the Reviewers section on top of the column on the right? Use that next time to request review.

I'll quickly check this

@ricknjacky
Copy link
Member Author

Screenshot (396)

See the Reviewers section on top of the column on the right? Use that next time to request review.

That feature is only available for members of the sugarlabs team, As you can see I don't have that access.
Correct me, if I am wrong ;-;

@meganindya
Copy link
Member

Sorry I didn't know that. No problem with this way then. We'll come up with some conventions for the other repo once we start working on that.

@ricknjacky
Copy link
Member Author

Sorry I didn't know that. No problem with this way then. We'll come up with some conventions for the other repo once we start working on that.

Are there any discrepancies in this PR tho?

Copy link
Member

@meganindya meganindya left a comment

Choose a reason for hiding this comment

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

In all the blocks (scopes) which contain that, please check if that === this. Then replace all instances.

@ricknjacky
Copy link
Member Author

In all the blocks (scopes) which contain that, please check if that === this. Then replace all instances.

Done, any other follow-ups that need some modification?

Copy link
Member

@meganindya meganindya left a comment

Choose a reason for hiding this comment

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

You've verified that === this and there's no crash right?

@ricknjacky
Copy link
Member Author

ricknjacky commented Nov 30, 2020

You've verified that === this and there's no crash right?

Screenshot (398)

VSCode came in handy, at all instances of that VSCode referred to that as this that was declared using
let that = this ; which indeed means that that === this

@ricknjacky
Copy link
Member Author

And I opened couple of widgets, they worked as expected.

@meganindya
Copy link
Member

You've verified that === this and there's no crash right?

Screenshot (398)

VSCode came in handy, at all instances of that VSCode referred to that as this that was declared using
let that = this ; which indeed means that that === this

No, I meant that you need to check it by asssestion, e.g. using console.assert() or console.log(that === this). let that = this; is what we want to remove, but then you need to check in every scope whether this is exactly equivalent to that. If you didn't use arrow functions they won't be equivalent. Just check if they are the same inside the arrow functions (they should be).

@meganindya meganindya merged commit a4c8e78 into sugarlabs:master Nov 30, 2020
@ricknjacky ricknjacky deleted the widgetwindowport branch November 30, 2020 17:18
@ricknjacky ricknjacky restored the widgetwindowport branch November 30, 2020 17:18
@ricknjacky ricknjacky deleted the widgetwindowport branch December 1, 2020 18:26
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