From 416ee1b2a05af5f4d0a65c08955ccaa94dd2ce90 Mon Sep 17 00:00:00 2001 From: Robert Hall Date: Wed, 19 Mar 2014 13:58:00 -0400 Subject: [PATCH] Fix code in examples. The examples are broken with extra parentheses. Fixed. --- docs/guides/setup.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/guides/setup.md b/docs/guides/setup.md index a08ef33f1..2fe205c1c 100644 --- a/docs/guides/setup.md +++ b/docs/guides/setup.md @@ -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). });