Skip to content

Commit

Permalink
refactor: remove IE8 specific changes (#133)
Browse files Browse the repository at this point in the history
  • Loading branch information
gjanblaszczyk authored Jun 1, 2022
1 parent 547a9c3 commit 316f405
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 22 deletions.
10 changes: 0 additions & 10 deletions src/quality-level-list.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import videojs from 'video.js';
import document from 'global/document';
import QualityLevel from './quality-level.js';

/**
Expand Down Expand Up @@ -28,15 +27,6 @@ class QualityLevelList extends videojs.EventTarget {

let list = this; // eslint-disable-line

if (videojs.browser.IS_IE8) {
list = document.createElement('custom');
for (const prop in QualityLevelList.prototype) {
if (prop !== 'constructor') {
list[prop] = QualityLevelList.prototype[prop];
}
}
}

list.levels_ = [];
list.selectedIndex_ = -1;

Expand Down
12 changes: 0 additions & 12 deletions src/quality-level.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
import videojs from 'video.js';
import document from 'global/document';

/**
* A single QualityLevel.
*
Expand Down Expand Up @@ -31,15 +28,6 @@ export default class QualityLevel {

let level = this; // eslint-disable-line

if (videojs.browser.IS_IE8) {
level = document.createElement('custom');
for (const prop in QualityLevel.prototype) {
if (prop !== 'constructor') {
level[prop] = QualityLevel.prototype[prop];
}
}
}

level.id = representation.id;
level.label = level.id;
level.width = representation.width;
Expand Down

0 comments on commit 316f405

Please sign in to comment.