From b6cc8525c91c4f658d9672c602b6a8f2f83dfd93 Mon Sep 17 00:00:00 2001 From: jfarcand Date: Wed, 29 Feb 2012 16:48:00 -0800 Subject: [PATCH] Fix for #197 SCRIPT16389: Unspecified error in 0.8.5 and 0.9 --- .../src/main/webapp/jquery/jquery.atmosphere.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/modules/jquery/src/main/webapp/jquery/jquery.atmosphere.js b/modules/jquery/src/main/webapp/jquery/jquery.atmosphere.js index 09bf6def756..c2d82fd2894 100644 --- a/modules/jquery/src/main/webapp/jquery/jquery.atmosphere.js +++ b/modules/jquery/src/main/webapp/jquery/jquery.atmosphere.js @@ -610,11 +610,6 @@ jQuery.atmosphere = function() { rq.readyState = ajaxRequest.readyState; - var tempDate = ajaxRequest.getResponseHeader('X-Cache-Date'); - if (tempDate != null || tempDate != undefined) { - _request.lastTimestamp = tempDate.split(" ").pop(); - } - if (ajaxRequest.readyState == 4) { if (jQuery.browser.msie) { update = true; @@ -633,6 +628,12 @@ jQuery.atmosphere = function() { } if (update) { + + var tempDate = ajaxRequest.getResponseHeader('X-Cache-Date'); + if (tempDate != null || tempDate != undefined) { + _request.lastTimestamp = tempDate.split(" ").pop(); + } + var responseText = ajaxRequest.responseText; this.previousLastIndex = rq.lastIndex; if (rq.transport == 'streaming') {