Browse Source

Replace videojs.extends with videojs.extend

"extends" is disallowed in IE8 so videojs renamed the inheritance helper. Update our usage to match.
pull/6/head
David LaPalomento 10 years ago
parent
commit
ea126b0bd1
  1. 4
      package.json
  2. 2
      src/videojs-hls.js
  3. 4
      test/videojs-hls_test.js

4
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"
}
}

2
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;

4
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(),

Loading…
Cancel
Save