Skip to content

Commit

Permalink
@heff fixed a code bug in track XHR requests. closes #1715
Browse files Browse the repository at this point in the history
  • Loading branch information
heff committed Dec 4, 2014
1 parent 0469c50 commit 3d16a43
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ CHANGELOG
=========

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

--------------------

Expand Down
2 changes: 1 addition & 1 deletion src/js/tracks.js
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ vjs.TextTrack.prototype.load = function(){
// Only load if not loaded yet.
if (this.readyState_ === 0) {
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) {
return this.onError(err);
}
Expand Down

0 comments on commit 3d16a43

Please sign in to comment.