1
0
mirror of https://github.com/videojs/video.js.git synced 2024-12-27 02:43:45 +02:00

Fix code in examples.

The examples are broken with extra parentheses. Fixed.
This commit is contained in:
Robert Hall 2014-03-19 13:58:00 -04:00
parent bdeaae1c92
commit 416ee1b2a0

View File

@ -89,13 +89,13 @@ The third argument is a 'ready' callback. Once Video.js has initialized it will
Instead of using an element ID, you can also pass a reference to the element itself.
```js
videojs(document.getElementsById('example_video_1')), {}, function()) {
videojs(document.getElementsById('example_video_1'), {}, function() {
// This is functionally the same as the previous example.
});
```
```js
videojs(document.getElementsByClassName('awesome_video_class')[0], {}, function()) {
videojs(document.getElementsByClassName('awesome_video_class')[0], {}, function() {
// You can grab an element by class if you'd like, just make sure
// if it's an array that you pick one (here we chose the first).
});