Replace videojs.extends with videojs.extend
"extends" is disallowed in IE8 so videojs renamed the inheritance helper. Update our usage to match.
Showing
3 changed files
with
5 additions
and
5 deletions
... | @@ -44,11 +44,11 @@ | ... | @@ -44,11 +44,11 @@ |
44 | "karma-sauce-launcher": "~0.1.8", | 44 | "karma-sauce-launcher": "~0.1.8", |
45 | "qunitjs": "^1.18.0", | 45 | "qunitjs": "^1.18.0", |
46 | "sinon": "1.10.2", | 46 | "sinon": "1.10.2", |
47 | "video.js": "^5.0.0-rc.51" | 47 | "video.js": "^5.0.0-rc.96" |
48 | }, | 48 | }, |
49 | "dependencies": { | 49 | "dependencies": { |
50 | "pkcs7": "^0.2.2", | 50 | "pkcs7": "^0.2.2", |
51 | "videojs-contrib-media-sources": "videojs/videojs-contrib-media-sources.git#mse-mp2t-polyfill", | 51 | "videojs-contrib-media-sources": "videojs/videojs-contrib-media-sources.git#mse-mp2t-polyfill", |
52 | "videojs-swf": "5.0.0-rc0" | 52 | "videojs-swf": "5.0.0-rc1" |
53 | } | 53 | } |
54 | } | 54 | } | ... | ... |
... | @@ -24,7 +24,7 @@ keyFailed = function(key) { | ... | @@ -24,7 +24,7 @@ keyFailed = function(key) { |
24 | return key.retries && key.retries >= 2; | 24 | return key.retries && key.retries >= 2; |
25 | }; | 25 | }; |
26 | 26 | ||
27 | videojs.Hls = videojs.extends(Component, { | 27 | videojs.Hls = videojs.extend(Component, { |
28 | constructor: function(tech, options) { | 28 | constructor: function(tech, options) { |
29 | var self = this, _player; | 29 | var self = this, _player; |
30 | 30 | ... | ... |
... | @@ -190,10 +190,10 @@ var | ... | @@ -190,10 +190,10 @@ var |
190 | }, | 190 | }, |
191 | 191 | ||
192 | // a no-op MediaSource implementation to allow synchronous testing | 192 | // a no-op MediaSource implementation to allow synchronous testing |
193 | MockMediaSource = videojs.extends(videojs.EventTarget, { | 193 | MockMediaSource = videojs.extend(videojs.EventTarget, { |
194 | constructor: function() {}, | 194 | constructor: function() {}, |
195 | addSourceBuffer: function() { | 195 | addSourceBuffer: function() { |
196 | return new (videojs.extends(videojs.EventTarget, { | 196 | return new (videojs.extend(videojs.EventTarget, { |
197 | constructor: function() {}, | 197 | constructor: function() {}, |
198 | abort: function() {}, | 198 | abort: function() {}, |
199 | buffered: videojs.createTimeRange(), | 199 | buffered: videojs.createTimeRange(), | ... | ... |
-
Please register or sign in to post a comment