Skip to content

Commit

Permalink
docs: revert changes in event handler functions
Browse files Browse the repository at this point in the history
remove @return tags
(see #4988)
  • Loading branch information
fal-works committed Mar 18, 2021
1 parent 81499b8 commit 766cc9a
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 13 deletions.
3 changes: 0 additions & 3 deletions src/events/keyboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,6 @@ p5.prototype.keyCode = 0;
*
* @method keyPressed
* @param {Object} [event] optional KeyboardEvent callback argument.
* @return {*} false if any default behavior should be prevented for this event. (Optional)
* @example
* <div>
* <code>
Expand Down Expand Up @@ -197,7 +196,6 @@ p5.prototype._onkeydown = function(e) {
*
* @method keyReleased
* @param {Object} [event] optional KeyboardEvent callback argument.
* @return {*} false if any default behavior should be prevented for this event. (Optional)
* @example
* <div>
* <code>
Expand Down Expand Up @@ -258,7 +256,6 @@ p5.prototype._onkeyup = function(e) {
*
* @method keyTyped
* @param {Object} [event] optional KeyboardEvent callback argument.
* @return {*} false if any default behavior should be prevented for this event. (Optional)
* @example
* <div>
* <code>
Expand Down
7 changes: 0 additions & 7 deletions src/events/mouse.js
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,6 @@ p5.prototype._setMouseButton = function(e) {
*
* @method mouseMoved
* @param {Object} [event] optional MouseEvent callback argument.
* @return {*} false if any default behavior should be prevented for this event. (Optional)
* @example
* <div>
* <code>
Expand Down Expand Up @@ -543,7 +542,6 @@ p5.prototype._setMouseButton = function(e) {
*
* @method mouseDragged
* @param {Object} [event] optional MouseEvent callback argument.
* @return {*} false if any default behavior should be prevented for this event. (Optional)
* @example
* <div>
* <code>
Expand Down Expand Up @@ -626,7 +624,6 @@ p5.prototype._onmousemove = function(e) {
*
* @method mousePressed
* @param {Object} [event] optional MouseEvent callback argument.
* @return {*} false if any default behavior should be prevented for this event. (Optional)
* @example
* <div>
* <code>
Expand Down Expand Up @@ -706,7 +703,6 @@ p5.prototype._onmousedown = function(e) {
*
* @method mouseReleased
* @param {Object} [event] optional MouseEvent callback argument.
* @return {*} false if any default behavior should be prevented for this event. (Optional)
* @example
* <div>
* <code>
Expand Down Expand Up @@ -785,7 +781,6 @@ p5.prototype._ondragover = p5.prototype._onmousemove;
*
* @method mouseClicked
* @param {Object} [event] optional MouseEvent callback argument.
* @return {*} false if any default behavior should be prevented for this event. (Optional)
* @example
* <div>
* <code>
Expand Down Expand Up @@ -854,7 +849,6 @@ p5.prototype._onclick = function(e) {
*
* @method doubleClicked
* @param {Object} [event] optional MouseEvent callback argument.
* @return {*} false if any default behavior should be prevented for this event. (Optional)
* @example
* <div>
* <code>
Expand Down Expand Up @@ -945,7 +939,6 @@ p5.prototype._pmouseWheelDeltaY = 0;
*
* @method mouseWheel
* @param {Object} [event] optional WheelEvent callback argument.
* @return {*} false if any default behavior should be prevented for this event. (Optional)
* @example
* <div>
* <code>
Expand Down
3 changes: 0 additions & 3 deletions src/events/touch.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ function getTouchInfo(canvas, w, h, e, i = 0) {
*
* @method touchStarted
* @param {Object} [event] optional TouchEvent callback argument.
* @return {*} false if any default behavior should be prevented for this event. (Optional)
* @example
* <div>
* <code>
Expand Down Expand Up @@ -159,7 +158,6 @@ p5.prototype._ontouchstart = function(e) {
*
* @method touchMoved
* @param {Object} [event] optional TouchEvent callback argument.
* @return {*} false if any default behavior should be prevented for this event. (Optional)
* @example
* <div>
* <code>
Expand Down Expand Up @@ -232,7 +230,6 @@ p5.prototype._ontouchmove = function(e) {
*
* @method touchEnded
* @param {Object} [event] optional TouchEvent callback argument.
* @return {*} false if any default behavior should be prevented for this event. (Optional)
* @example
* <div>
* <code>
Expand Down

0 comments on commit 766cc9a

Please sign in to comment.