Skip to content

Commit

Permalink
add deprecation jsdoc notice
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-barstow committed Apr 11, 2022
1 parent f95856a commit 9300ae4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/js/extend.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ import log from './utils/log';
*
* @return {Function}
* The new class with subClassMethods that inherited superClass.
*
* @deprecated videojs.extend() is deprecated as of v8; use native ES6 classes instead
*/
const extend = function(superClass, subClassMethods = {}) {
log.warn('The extend() method is deprecated. Please use native ES6 classes instead.');
Expand Down

0 comments on commit 9300ae4

Please sign in to comment.