Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
style(base): Use default param syntax in constructor
The constructor of component was using a check for undefined to specify a default value instead of the new ES2015 syntax. Using the new syntax is clearer and more concise, since it shows the parameter is optional right where it is declared.
- Loading branch information
8efbf1f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm having an issue when building custom vanilla components since this commit, because root_ is not available yet when getDefaultFoundation() is called. Is there another way to retrieve it? Thanks!