diff --git a/EventSource.js b/EventSource.js index e160834..3f8dc01 100644 --- a/EventSource.js +++ b/EventSource.js @@ -53,8 +53,8 @@ var EventSource = function(url, options) { lastIndexProcessed = 0; xhr.timeout = - this.OPTIONS && this.OPTIONS.timeout !== undefined - ? this.OPTIONS.timeout + eventsource.OPTIONS && eventsource.OPTIONS.timeout !== undefined + ? eventsource.OPTIONS.timeout : 50000; xhr.onreadystatechange = function() {