-
Notifications
You must be signed in to change notification settings - Fork 7.5k
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
Update the jsdoc comments to modern syntax - Part 2 #3698
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
More good stuff.
* @type {Object|undefined} | ||
* @private | ||
* uses the map approach from [Screenful.js]{@link https://github.com/sindresorhus/screenfull.js}. | ||
* The Spec for this is located [here]{@link https://dvcs.w3.org/hg/fullscreen/raw-file/tip/Overview.html} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use this url instead: https://fullscreen.spec.whatwg.org
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just for the spec link? right?
@@ -9,15 +9,21 @@ import * as Fn from '../utils/fn.js'; | |||
import toTitleCase from '../utils/to-title-case.js'; | |||
|
|||
/** | |||
* A button class with a popup menu | |||
* A Button class for any {@link Menu} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it would be good to keep the word "popup" in there
* a constructor for a menu item | ||
* | ||
* @param {Player} player | ||
* the player that this component should ataach to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
*attach
* The constructor for Menu | ||
* | ||
* @param {Player} player | ||
* the player that this component should ataach to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
*attach
@@ -199,15 +219,23 @@ class ModalDialog extends Component { | |||
} | |||
|
|||
/** | |||
* Closes the modal. | |||
* Closes the modal, does nothing if the ModalDialog is | |||
8 not open |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
8 -> *
@gkatsev ready for re-review |
* constructor for a MenuButton | ||
* | ||
* @param {Player} player | ||
* the player that this component should ataach to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
*attach
* but is not a native HTML button. | ||
* | ||
* @param {Player} player | ||
* the player that this component should ataach to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
*ataach
* @fires Component#resize | ||
* | ||
* @param {string} widthOrHeight | ||
8 'width' or 'height' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
8 -> *
8 'width' or 'height' | ||
* | ||
* @param {number|string} [num] | ||
8 New dimension |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
8 -> *
@gkatsev made all the requested changes, ran through hemingway, and made this PR not depend on the other. Ready for a last review! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A super minor comment, LGTM otherwise.
@@ -100,4 +119,95 @@ for (let errNum = 0; errNum < MediaError.errorTypes.length; errNum++) { | |||
MediaError.prototype[MediaError.errorTypes[errNum]] = errNum; | |||
} | |||
|
|||
// jsdocs for instance/static members added above |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we note that this is why it will look like the following is doubled? i.e., we have both MediaError#MEDIA_ERROR_CUSTOM
(instance) and MediaError.MEDIA_ERROR_CUSTOM
(static).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sure will do
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(done)
Description
@return
and description where missing from functions@param
and description where missing@class
and@method
@events
and@fires
Files Changed (all others are from the previous PR)
- src/js/poster-image.js
Requirements Checklist