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

fast-element: Simplify fromView logic and element-controller checks #7047

Merged
merged 7 commits into from
Dec 11, 2024

Conversation

doguabaris
Copy link
Contributor

@doguabaris doguabaris commented Dec 6, 2024

Pull Request

πŸ“– Description

🎫 Issues

πŸ‘©β€πŸ’» Reviewer Notes

πŸ“‘ Test Plan

βœ… Checklist

General

  • I have included a change request file using $ npm run change
  • I have added tests for my changes.
  • I have tested my changes.
  • I have updated the project documentation to reflect my changes.
  • I have read the CONTRIBUTING documentation and followed the standards for this project.

⏭ Next Steps

Replace the ternary operator with a direct negation in the fromView
method. This change enhances code readability and ensures consistent
handling of null, undefined, false, and zero values.
Renamed the `value` parameter to `newValue` in the `setValue` method of
the `attributes.ts` file.
Replaced explicit boolean comparisons with direct truthy and falsy
checks in the `connectBehaviors` and `disconnectBehaviors` methods.
@doguabaris
Copy link
Contributor Author

doguabaris commented Dec 6, 2024 via email

@janechu
Copy link
Collaborator

janechu commented Dec 10, 2024

Hi @doguabaris, thanks for the PR, can you include a changefile by running npm run change?

doguabaris and others added 2 commits December 10, 2024 22:40
…thod

- Added a detailed description for the newValue parameter in the setValue method.
- Ensures better clarity and documentation for the method's functionality.
@doguabaris doguabaris changed the title Simplify conditional checks fast-element: Simplify fromView logic and element-controller checks Dec 10, 2024
@janechu janechu merged commit 51a79eb into microsoft:master Dec 11, 2024
5 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