af5557a7 by David LaPalomento

Rename variable

`abortTimeout` is a little less overloaded than `timeout`.
1 parent badf3bca
...@@ -551,7 +551,7 @@ xhr = videojs.Hls.xhr = function(url, callback) { ...@@ -551,7 +551,7 @@ xhr = videojs.Hls.xhr = function(url, callback) {
551 timeout: 45 * 1000 551 timeout: 45 * 1000
552 }, 552 },
553 request, 553 request,
554 timeout; 554 abortTimeout;
555 555
556 if (typeof callback !== 'function') { 556 if (typeof callback !== 'function') {
557 callback = function() {}; 557 callback = function() {};
...@@ -577,7 +577,7 @@ xhr = videojs.Hls.xhr = function(url, callback) { ...@@ -577,7 +577,7 @@ xhr = videojs.Hls.xhr = function(url, callback) {
577 request.timeout = options.timeout; 577 request.timeout = options.timeout;
578 } else { 578 } else {
579 // polyfill XHR2 by aborting after the timeout 579 // polyfill XHR2 by aborting after the timeout
580 timeout = window.setTimeout(function() { 580 abortTimeout = window.setTimeout(function() {
581 if (request.readystate !== 4) { 581 if (request.readystate !== 4) {
582 request.abort(); 582 request.abort();
583 } 583 }
...@@ -592,7 +592,7 @@ xhr = videojs.Hls.xhr = function(url, callback) { ...@@ -592,7 +592,7 @@ xhr = videojs.Hls.xhr = function(url, callback) {
592 } 592 }
593 593
594 // clear outstanding timeouts 594 // clear outstanding timeouts
595 window.clearTimeout(timeout); 595 window.clearTimeout(abortTimeout);
596 596
597 // request error 597 // request error
598 if (this.status >= 400 || this.status === 0) { 598 if (this.status >= 400 || this.status === 0) {
......