aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSam Potts <sam@potts.es>2019-02-14 23:29:49 +1100
committerGitHub <noreply@github.com>2019-02-14 23:29:49 +1100
commitb38a481b20fa5de9fa5143813f53e2fac5ab9bff (patch)
tree284776125edaf26dc15551bfc81048b9f2b861ab
parent0189e90fce151a94a47d0f3f7bbbc8290c6ad4cd (diff)
parent7e1d461882f65c134d207690343719fe5c393a4a (diff)
downloadplyr-b38a481b20fa5de9fa5143813f53e2fac5ab9bff.tar.lz
plyr-b38a481b20fa5de9fa5143813f53e2fac5ab9bff.tar.xz
plyr-b38a481b20fa5de9fa5143813f53e2fac5ab9bff.zip
Merge pull request #1343 from electerious/patch-1
Remove NodeList example
-rw-r--r--readme.md7
1 files changed, 2 insertions, 5 deletions
diff --git a/readme.md b/readme.md
index 6d55989c..198351d0 100644
--- a/readme.md
+++ b/readme.md
@@ -229,7 +229,6 @@ You can specify a range of arguments for the constructor to use:
- A CSS string selector that's compatible with [`querySelector`](https://developer.mozilla.org/en-US/docs/Web/API/Document/querySelector)
- A [`HTMLElement`](https://developer.mozilla.org/en/docs/Web/API/HTMLElement)
-- A [`NodeList`](https://developer.mozilla.org/en-US/docs/Web/API/NodeList)
- A [jQuery](https://jquery.com) object
_Note_: If a `NodeList`, `Array`, or jQuery object are passed, the first element will be used for setup. To setup multiple players, see [setting up multiple players](#setting-up-multiple-players) below.
@@ -248,13 +247,11 @@ Passing a [HTMLElement](https://developer.mozilla.org/en/docs/Web/API/HTMLElemen
const player = new Plyr(document.getElementById('player'));
```
-Passing a [NodeList](https://developer.mozilla.org/en-US/docs/Web/API/NodeList) (see note below):
-
```javascript
-const player = new Plyr(document.querySelectorAll('.js-player'));
+const player = new Plyr(document.querySelector('#player'));
```
-The NodeList, HTMLElement or string selector can be the target `<video>`, `<audio>`, or `<div>` wrapper for embeds.
+The HTMLElement or string selector can be the target `<video>`, `<audio>`, or `<div>` wrapper for embeds.
##### Setting up multiple players