Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fast-element: Simplify fromView logic and element-controller checks (#…
…7047) * fast-element: Simplify fromView condition in attributes 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. * fast-element: Update parameter name in setValue method Renamed the `value` parameter to `newValue` in the `setValue` method of the `attributes.ts` file. * fast-element: Simplify conditional checks in element-controller Replaced explicit boolean comparisons with direct truthy and falsy checks in the `connectBehaviors` and `disconnectBehaviors` methods. * docs(fast-element): improve JSDoc for AttributeDefinition setValue method - Added a detailed description for the newValue parameter in the setValue method. - Ensures better clarity and documentation for the method's functionality. * Restore explicit boolean checks in element-controller methods --------- Co-authored-by: Jane Chu <[email protected]>
- Loading branch information