Skip to content

Commit c943610

Browse files
committed
Remove remnants of unsupported data-prevnext-unit
1 parent 722f536 commit c943610

5 files changed

Lines changed: 3 additions & 39 deletions

File tree

build/ableplayer.dist.js

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -265,18 +265,6 @@
265265
this.defaultChapter = null;
266266
}
267267

268-
// Previous/Next buttons
269-
// valid values of data-prevnext-unit are 'playlist' and 'chapter'; will also accept 'chapters'
270-
if ($(media).data('prevnext-unit') === 'chapter' || $(media).data('prevnext-unit') === 'chapters') {
271-
this.prevNextUnit = 'chapter';
272-
}
273-
else if ($(media).data('prevnext-unit') === 'playlist') {
274-
this.prevNextUnit = 'playlist';
275-
}
276-
else {
277-
this.prevNextUnit = false;
278-
}
279-
280268
// Slower/Faster buttons
281269
// valid values of data-speed-icons are 'animals' (default) and 'arrows'
282270
// 'animals' uses turtle and rabbit; 'arrows' uses up/down arrows

build/ableplayer.js

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -265,18 +265,6 @@
265265
this.defaultChapter = null;
266266
}
267267

268-
// Previous/Next buttons
269-
// valid values of data-prevnext-unit are 'playlist' and 'chapter'; will also accept 'chapters'
270-
if ($(media).data('prevnext-unit') === 'chapter' || $(media).data('prevnext-unit') === 'chapters') {
271-
this.prevNextUnit = 'chapter';
272-
}
273-
else if ($(media).data('prevnext-unit') === 'playlist') {
274-
this.prevNextUnit = 'playlist';
275-
}
276-
else {
277-
this.prevNextUnit = false;
278-
}
279-
280268
// Slower/Faster buttons
281269
// valid values of data-speed-icons are 'animals' (default) and 'arrows'
282270
// 'animals' uses turtle and rabbit; 'arrows' uses up/down arrows

build/ableplayer.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ableplayer",
3-
"version": "4.0.06",
3+
"version": "4.0.07",
44
"description": "fully accessible HTML5 media player",
55
"homepage": "http://ableplayer.github.io/ableplayer",
66
"bugs": "https://github.com/ableplayer/ableplayer/issues",

scripts/ableplayer-base.js

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -265,18 +265,6 @@
265265
this.defaultChapter = null;
266266
}
267267

268-
// Previous/Next buttons
269-
// valid values of data-prevnext-unit are 'playlist' and 'chapter'; will also accept 'chapters'
270-
if ($(media).data('prevnext-unit') === 'chapter' || $(media).data('prevnext-unit') === 'chapters') {
271-
this.prevNextUnit = 'chapter';
272-
}
273-
else if ($(media).data('prevnext-unit') === 'playlist') {
274-
this.prevNextUnit = 'playlist';
275-
}
276-
else {
277-
this.prevNextUnit = false;
278-
}
279-
280268
// Slower/Faster buttons
281269
// valid values of data-speed-icons are 'animals' (default) and 'arrows'
282270
// 'animals' uses turtle and rabbit; 'arrows' uses up/down arrows

0 commit comments

Comments
 (0)