Skip to content

docs: keep addon anti-example with explanation - #9172

Open
Voyagerroc-Lab wants to merge 1 commit into
processing:mainfrom
Voyagerroc-Lab:docs/9171-addon-example
Open

docs: keep addon anti-example with explanation#9172
Voyagerroc-Lab wants to merge 1 commit into
processing:mainfrom
Voyagerroc-Lab:docs/9171-addon-example

Conversation

@Voyagerroc-Lab

Copy link
Copy Markdown

Closes #9171

Move the arrow-function anti-example into the details block that explains why regular functions are required for addon methods. Readers now see the warning and the code it describes together, before the recommended example.

Validation: git diff --check passes. The full p5.js documentation build was not run because its dependencies are not installed in this environment.

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.

[p5.js 2.0+ Bug Report]: Minor issues in the creating libraries contributor doc

1 participant