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

fix: function names #580

Merged
merged 11 commits into from May 5, 2018
Merged

fix: function names #580

merged 11 commits into from May 5, 2018

Conversation

38elements
Copy link
Contributor

I think this make it easy to read and git blame.

}
}

function addSlotToVm (vm: Component, slotName: string, slotValue: Component | string | Array<Component> | Array<string>): void {
Copy link
Member

Choose a reason for hiding this comment

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

Could you move the slotValue into its own type:

type SlotValue = Component | string | Array<Component> | Array<string>

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thank you for pointng out.
I added a type.

@38elements
Copy link
Contributor Author

I think a person who do not understand specifications and codes can not add large cosmetic change appropriately.

@eddyerburgh
Copy link
Member

eddyerburgh commented May 4, 2018

I've skipped the failing tests—#581

if (typeof slotValue === 'string') {
slotValue = slotValue.trim()
Copy link
Contributor Author

Choose a reason for hiding this comment

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

When slotValue is ' foo ', this line make a bug.
This process introduced at #556 .
I added a test for spaces.

@eddyerburgh eddyerburgh merged commit d8485f5 into vuejs:dev May 5, 2018
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.

None yet

2 participants