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

converted remaining text-track modules to full es6 #3130

Closed
wants to merge 5 commits into from
Closed

converted remaining text-track modules to full es6 #3130

wants to merge 5 commits into from

Conversation

brandonocasey
Copy link
Contributor

Description

Converted several text-track files to full es6 and added jsdoc comments to the files that I touched

Specific Changes proposed

  • added jsdoc comments to functions that did not previously have them
  • linted changed files with vjsstandard were it would not conflict with current jshint
  • converted text-track files to full es6 with classes

Requirements Checklist

  • Feature implemented / Bug fixed
  • Manually Tested on Chrome, Firefox, Safari, and IE8
  • Reviewed by Two Core Contributors

added jsdoc comments to functions that did not previously have them
linted changed files with vjsstandard
};

/* jshint ignore:start */
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it probably doesn't understand const.

@gkatsev
Copy link
Member

gkatsev commented Feb 23, 2016

Made some comments, mostly minor changes.

updated several jsdoc comments
removed the indexOf polyfill as we assume es5 and use the standard one
@brandonocasey
Copy link
Contributor Author

@gkatsev OK I think I addressed your comments

@@ -12,72 +13,93 @@ import document from 'global/document';
* getter TextTrackCue (unsigned long index);
* TextTrackCue? getCueById(DOMString id);
* };
*
* @param {Array} cues cues to add to the list
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This comment also needs to be updated. cues to be initialized with or something.

@gkatsev gkatsev added patch This PR can be added to a patch release. needs: LGTM Needs one or more additional approvals labels Feb 24, 2016
get() {
return kind;
},
set: () => {}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is in the nitpicky category but I'm wondering if we should encode noops like this:

{
  set(): {}
}

The fat arrow functions have extra functionality we don't want here and I think they'll end up getting transpiled into more code.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm in favor of sticking with the shorthand syntax for consistency (but good to know it gets optimized in the transpiling).

@dmlap
Copy link
Member

dmlap commented Feb 26, 2016

Other than the comment about fat-arrow functions, lgtm

@dmlap
Copy link
Member

dmlap commented Feb 26, 2016

LGTM

@gkatsev gkatsev added confirmed and removed needs: LGTM Needs one or more additional approvals labels Feb 26, 2016
@gkatsev gkatsev closed this in cb3d709 Feb 29, 2016
@brandonocasey brandonocasey deleted the es6-tracks branch March 1, 2016 15:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
confirmed patch This PR can be added to a patch release.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants