1
0
mirror of https://github.com/videojs/video.js.git synced 2025-03-17 21:18:27 +02:00

using vjs.bind

This commit is contained in:
Matt Osborn 2014-07-09 10:14:44 +01:00
parent 926ccac6a7
commit d6d3dd1d4d

View File

@ -1071,7 +1071,7 @@ vjs.Player.prototype.setSource = function(source, type) {
this.cache_.src = source;
var _set = (function () {
var _set = vjs.bind(this, function () {
this.currentType_ = type || '';
this.techCall('src', source);
if (this.options_['preload'] == 'auto') {
@ -1080,7 +1080,7 @@ vjs.Player.prototype.setSource = function(source, type) {
if (this.options_['autoplay']) {
this.play();
}
}).bind(this);
});
this.ready(_set);
};