Skip to content

Commit

Permalink
Merge pull request #4989 from fal-works/fix/inline-docs
Browse files Browse the repository at this point in the history
Fix inline docs of int(), windowResized() and other event handler functions
  • Loading branch information
limzykenneth authored Mar 18, 2021
2 parents 4c194ec + d46e5b9 commit 68ac2be
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/core/environment.js
Original file line number Diff line number Diff line change
Expand Up @@ -424,6 +424,7 @@ p5.prototype.windowHeight = getWindowHeight();
* canvas or do any other adjustments to accommodate the new window size.
*
* @method windowResized
* @param {Object} [event] optional Event callback argument.
* @example
* <div class="norender"><code>
* function setup() {
Expand Down
3 changes: 3 additions & 0 deletions src/events/keyboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ p5.prototype.keyCode = 0;
* behavior for this event, add "return false" to the end of the method.
*
* @method keyPressed
* @param {Object} [event] optional KeyboardEvent callback argument.
* @example
* <div>
* <code>
Expand Down Expand Up @@ -194,6 +195,7 @@ p5.prototype._onkeydown = function(e) {
* behavior for this event, add "return false" to the end of the method.
*
* @method keyReleased
* @param {Object} [event] optional KeyboardEvent callback argument.
* @example
* <div>
* <code>
Expand Down Expand Up @@ -253,6 +255,7 @@ p5.prototype._onkeyup = function(e) {
* to the end of the method.
*
* @method keyTyped
* @param {Object} [event] optional KeyboardEvent callback argument.
* @example
* <div>
* <code>
Expand Down
1 change: 1 addition & 0 deletions src/utilities/conversion.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ p5.prototype.float = function(str) {
/**
* @method int
* @param {Array} ns values to parse
* @param {Integer} [radix]
* @return {Number[]} integer representation of values
*/
p5.prototype.int = function(n, radix = 10) {
Expand Down

0 comments on commit 68ac2be

Please sign in to comment.