Skip to content

Commit

Permalink
Fix for #197 SCRIPT16389: Unspecified error in 0.8.5 and 0.9
Browse files Browse the repository at this point in the history
  • Loading branch information
jfarcand committed Mar 1, 2012
1 parent 5047a3a commit b6cc852
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions modules/jquery/src/main/webapp/jquery/jquery.atmosphere.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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') {
Expand Down

0 comments on commit b6cc852

Please sign in to comment.