1
0
mirror of https://github.com/videojs/video.js.git synced 2025-03-31 22:22:09 +02:00

@heff fixed a code bug in track XHR requests. closes #1715

This commit is contained in:
heff 2014-12-04 14:03:36 -08:00
parent 0469c5063c
commit 3d16a4378c
2 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,7 @@ CHANGELOG
========= =========
## HEAD (Unreleased) ## HEAD (Unreleased)
_(none)_ * @heff fixed a code bug in track XHR requests ([view](https://github.com/videojs/video.js/pull/1715))
-------------------- --------------------

View File

@ -424,7 +424,7 @@ vjs.TextTrack.prototype.load = function(){
// Only load if not loaded yet. // Only load if not loaded yet.
if (this.readyState_ === 0) { if (this.readyState_ === 0) {
this.readyState_ = 1; this.readyState_ = 1;
vjs.xhr(this.src_, vjs.bind(function(err, response, responseBody){ vjs.xhr(this.src_, vjs.bind(this, function(err, response, responseBody){
if (err) { if (err) {
return this.onError(err); return this.onError(err);
} }