From db56965c978c0fd5a2993085a454f2fcc5934816 Mon Sep 17 00:00:00 2001 From: Patrick Ting Date: Tue, 17 Mar 2015 18:02:08 -0700 Subject: [PATCH] = Tailing Commas in JSON IE8 Error Fix - Fix for videojs/video.js#1943 --- lib/vtt.js | 4 ++-- lib/vttregion.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/vtt.js b/lib/vtt.js index 7661123..f6afb40 100644 --- a/lib/vtt.js +++ b/lib/vtt.js @@ -795,7 +795,7 @@ if (cue.vertical === "") { this.applyStyles({ left: this.formatStyle(textPos, "%"), - width: this.formatStyle(cue.size, "%"), + width: this.formatStyle(cue.size, "%") }); // Vertical box orientation; textPos is the distance from the top edge of the // area to the top edge of the box and cue.size is the height extending @@ -814,7 +814,7 @@ left: this.formatStyle(box.left, "px"), right: this.formatStyle(box.right, "px"), height: this.formatStyle(box.height, "px"), - width: this.formatStyle(box.width, "px"), + width: this.formatStyle(box.width, "px") }); }; } diff --git a/lib/vttregion.js b/lib/vttregion.js index c59f213..e58ccf1 100644 --- a/lib/vttregion.js +++ b/lib/vttregion.js @@ -18,7 +18,7 @@ var scrollSetting = { "": true, - "up": true, + "up": true }; function findScrollSetting(value) {