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 jsdocs for multi-line ES6-style methods #1286

Merged
merged 1 commit into from
May 14, 2015
Merged

Conversation

hansonw
Copy link
Contributor

@hansonw hansonw commented May 14, 2015

Summary:
The function definition and body can be in different places for multi-line declarations, so the docblock might not get pulled in. None of the existing docs seem to be affected, but putting up the fix for posterity.

Test Plan:
I modified AlertIOS.alert (in Libraries/Utilties/AlertIOS.js) to actually have a docblock, and ran website/publish.sh (with the push bit commented out). The added doc doesn't get picked up with the current code, but it does with the fix.

PS @vjeux: seems like 14c5a23 never got merged in?

Summary:
The function definition and body can be in different places for multi-line declarations, so the docblock might not get pulled in. None of the existing docs seem to be affected, but putting up the fix for posterity.

Test Plan:
I modified `AlertIOS.alert` (in Libraries/Utilties/AlertIOS.js) to actually have a docblock, and ran `website/publish.sh` (with the push bit commented out). The added doc doesn't get picked up with the current code, but it does with the fix.
@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label May 14, 2015
@vjeux
Copy link
Contributor

vjeux commented May 14, 2015

I'll wait for the tests to pass

vjeux added a commit that referenced this pull request May 14, 2015
Fix jsdocs for multi-line ES6-style methods
@vjeux vjeux merged commit aa439b7 into facebook:master May 14, 2015
ryanlntn pushed a commit to ryanlntn/react-native that referenced this pull request Aug 9, 2022
This bug was due to some code in multiline TextInput which disabled all text checking types by default.
We now match the system default instead.

Co-authored-by: Liron Yahdav <lyahdav@fb.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants