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

[plugin-proposal-class-properties] Fix small loose docs typo #6941

Merged
merged 2 commits into from
Nov 30, 2017

Conversation

sdgluck
Copy link
Contributor

@sdgluck sdgluck commented Nov 30, 2017

No description provided.

@sdgluck sdgluck changed the title Fix small loose docs typo [@babel/plugin-proposal-class-properties] Fix small loose docs typo Nov 30, 2017
@sdgluck sdgluck changed the title [@babel/plugin-proposal-class-properties] Fix small loose docs typo [plugin-proposal-class-properties] Fix small loose docs typo Nov 30, 2017
@@ -98,7 +98,7 @@ When `true`, class properties are compiled to use an assignment expression inste
}
```

Without `{ "loose": true }`, the above code will compile to the following, using `Object.definePropery`:
Without `{ "loose": false }`, the above code will compile to the following, using `Object.definePropery`:
Copy link
Member

@existentialism existentialism Nov 30, 2017

Choose a reason for hiding this comment

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

"Without { "loose": true }" seems correct, as in... when not in loose mode, it will use Object.defineProperty.

The real typo is Object.definePropery -> Object.defineProperty :)

Mind fixing/updating?

Copy link
Member

Choose a reason for hiding this comment

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

Yeah you wouldn't use loose false, it is describing the default behavior

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@existentialism Updated 👍

@existentialism existentialism added the PR: Docs 📝 A type of pull request used for our changelog categories label Nov 30, 2017
@babel-bot
Copy link
Collaborator

babel-bot commented Nov 30, 2017

Build successful! You can test your changes in the REPL here: https://babeljs.io/repl/build/6045/

@existentialism existentialism merged commit 18b91a8 into babel:master Nov 30, 2017
@existentialism
Copy link
Member

@sdgluck thanks!

@lock lock bot added the outdated A closed issue/PR that is archived due to age. Recommended to make a new issue label Oct 5, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Oct 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
outdated A closed issue/PR that is archived due to age. Recommended to make a new issue PR: Docs 📝 A type of pull request used for our changelog categories
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants