Skip to content

Commit

Permalink
docs(plugins guide): changed paused to pause where appropriate (#4957)
Browse files Browse the repository at this point in the history
Fixes #4951
  • Loading branch information
jessdvdv authored and gkatsev committed Feb 14, 2018
1 parent de9069f commit 763a7f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/guides/plugins.md
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ Note that the [plugin generator](https://github.com/videojs/generator-videojs-pl

### Advanced Example Advanced Plugin

What follows is a complete ES6 advanced plugin that logs a custom message when the player's state changes between playing and paused. It uses all the described advanced features:
What follows is a complete ES6 advanced plugin that logs a custom message when the player's state changes between playing and pause. It uses all the described advanced features:

```js
import videojs from 'video.js';
Expand All @@ -258,7 +258,7 @@ class Advanced extends Plugin {
constructor(player, options) {
super(player, options);

// Whenever the player emits a playing or paused event, we update the
// Whenever the player emits a playing or pause event, we update the
// state if necessary.
this.on(player, ['playing', 'pause'], this.updateState);
this.on('statechanged', this.logState);
Expand Down

0 comments on commit 763a7f5

Please sign in to comment.