Skip to content

Commit

Permalink
feat(plugins): allow plugin deregistration from videojs (#5273)
Browse files Browse the repository at this point in the history
This exposes `deregisterPlugin` on the videojs alongside `registerPlugin`.
  • Loading branch information
brandonocasey authored and gkatsev committed Jul 26, 2018
1 parent 7ba7ae3 commit 98e3c81
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/js/video.js
Original file line number Diff line number Diff line change
Expand Up @@ -464,6 +464,20 @@ videojs.bind = Fn.bind;
*/
videojs.registerPlugin = Plugin.registerPlugin;

/**
* Deregister a Video.js plugin.
*
* @borrows plugin:deregisterPlugin as videojs.deregisterPlugin
* @method deregisterPlugin
*
* @param {string} name
* The name of the plugin to be deregistered. Must be a string and
* must match an existing plugin or a method on the `Player`
* prototype.
*
*/
videojs.deregisterPlugin = Plugin.deregisterPlugin;

/**
* Deprecated method to register a plugin with Video.js
*
Expand Down

0 comments on commit 98e3c81

Please sign in to comment.