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

chore: remove underscores from private properties and methods for names and workspace comments #6962

Merged
merged 4 commits into from
Apr 11, 2023

Conversation

rachel-fenichel
Copy link
Collaborator

The basics

  • I branched from develop
  • My pull request is against develop
  • My code follows the style guide
  • I ran npm run format and npm run lint

The details

Resolves

Part of #6548

Proposed Changes

Remove underscores from private property and method names. Fix uses in tests. Note that the tests are still accessing private properties. I decided not to add getters that would only exist for tests.

Stop setting properties to null in dispose when not needed.

Behavior Before Change

No change

Reason for Changes

Match current google style guide.

@rachel-fenichel rachel-fenichel requested a review from a team as a code owner April 7, 2023 23:00
@github-actions github-actions bot added the PR: chore General chores (dependencies, typos, etc) label Apr 7, 2023
Copy link
Collaborator

@BeksOmega BeksOmega left a comment

Choose a reason for hiding this comment

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

One comment about disposal, otherwise LGTM!

Comment on lines 954 to 957
this.textarea = null;
this.foreignObject = null;
this.svgRectTarget = null;
this.svgHandleTarget = null;
Copy link
Collaborator

Choose a reason for hiding this comment

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

I don't think any of these nullifications are necessary. 🤞

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Removed!

@rachel-fenichel rachel-fenichel merged commit 2bf780e into google:develop Apr 11, 2023
@rachel-fenichel rachel-fenichel deleted the misc_cleanup_4 branch April 11, 2023 17:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR: chore General chores (dependencies, typos, etc) type: cleanup
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants