From ea126b0bd1a9ccf378773910e5471bb2c31a86c8 Mon Sep 17 00:00:00 2001 From: David LaPalomento Date: Tue, 22 Sep 2015 14:18:35 -0400 Subject: [PATCH] Replace videojs.extends with videojs.extend "extends" is disallowed in IE8 so videojs renamed the inheritance helper. Update our usage to match. --- package.json | 4 ++-- src/videojs-hls.js | 2 +- test/videojs-hls_test.js | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 7b74db41..bc65fe72 100644 --- a/package.json +++ b/package.json @@ -44,11 +44,11 @@ "karma-sauce-launcher": "~0.1.8", "qunitjs": "^1.18.0", "sinon": "1.10.2", - "video.js": "^5.0.0-rc.51" + "video.js": "^5.0.0-rc.96" }, "dependencies": { "pkcs7": "^0.2.2", "videojs-contrib-media-sources": "videojs/videojs-contrib-media-sources.git#mse-mp2t-polyfill", - "videojs-swf": "5.0.0-rc0" + "videojs-swf": "5.0.0-rc1" } } diff --git a/src/videojs-hls.js b/src/videojs-hls.js index 565e061f..713335f7 100644 --- a/src/videojs-hls.js +++ b/src/videojs-hls.js @@ -24,7 +24,7 @@ keyFailed = function(key) { return key.retries && key.retries >= 2; }; -videojs.Hls = videojs.extends(Component, { +videojs.Hls = videojs.extend(Component, { constructor: function(tech, options) { var self = this, _player; diff --git a/test/videojs-hls_test.js b/test/videojs-hls_test.js index d0495a5e..536681f1 100644 --- a/test/videojs-hls_test.js +++ b/test/videojs-hls_test.js @@ -190,10 +190,10 @@ var }, // a no-op MediaSource implementation to allow synchronous testing - MockMediaSource = videojs.extends(videojs.EventTarget, { + MockMediaSource = videojs.extend(videojs.EventTarget, { constructor: function() {}, addSourceBuffer: function() { - return new (videojs.extends(videojs.EventTarget, { + return new (videojs.extend(videojs.EventTarget, { constructor: function() {}, abort: function() {}, buffered: videojs.createTimeRange(),