Skip to content

Commit

Permalink
for 5.20 version
Browse files Browse the repository at this point in the history
videojs#4378 fix IE10 issue for disableOthers
  • Loading branch information
jetfontanilla committed Jun 5, 2017
1 parent 872d0ff commit 9d94a5c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "video.js",
"description": "An HTML5 and Flash video player with a common API and skin for both.",
"version": "5.20.1",
"version": "5.20.1-jet",
"main": "./es5/video.js",
"style": "./dist/video-js.css",
"copyright": "Copyright Brightcove, Inc. <https://www.brightcove.com/>",
Expand Down Expand Up @@ -139,5 +139,8 @@
"ghooks": {
"pre-push": "npm run lint -- --errors"
}
},
"publishConfig": {
"registry": "http://admin.babelcentral.com:10090/repository/npm-internal/"
}
}
2 changes: 1 addition & 1 deletion src/js/tracks/audio-track-list.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import document from 'global/document';
*/
const disableOthers = function(list, track) {
for (let i = 0; i < list.length; i++) {
if (track.id === list[i].id) {
if (!list[i].id || track.id === list[i].id) {
continue;
}
// another audio track is enabled, disable it
Expand Down
2 changes: 1 addition & 1 deletion src/js/tracks/video-track-list.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import document from 'global/document';
*/
const disableOthers = function(list, track) {
for (let i = 0; i < list.length; i++) {
if (track.id === list[i].id) {
if (!list[i].id || track.id === list[i].id) {
continue;
}
// another video track is enabled, disable it
Expand Down

0 comments on commit 9d94a5c

Please sign in to comment.