Skip to content

Conversation

@linbingquan
Copy link
Contributor

Description

Followup of 00f2725

@Mugen87 Mugen87 added this to the r124 milestone Dec 5, 2020
const _sphere = new Sphere();

function Line( geometry, material, mode ) {
function Line( geometry = new BufferGeometry(), material = new LineBasicMaterial(), mode ) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think it's okay to finally remove the mode parameter.

@mrdoob What do you think? Otherwise the signature looks a bit strange again.

Copy link
Owner

Choose a reason for hiding this comment

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

Sounds good. I'll remove it.

@mrdoob mrdoob merged commit 97daea3 into mrdoob:dev Dec 22, 2020
@mrdoob
Copy link
Owner

mrdoob commented Dec 22, 2020

Thanks!

mrdoob added a commit that referenced this pull request Dec 22, 2020
@linbingquan linbingquan deleted the dev-es6-defaultvalue branch February 28, 2021 10:44
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.

3 participants