* VRFS-1575 - implemented isNetworkError

This commit is contained in:
Seth Call 2014-05-30 12:25:47 -05:00
parent 3a5fe7e615
commit 572c8449b9
1 changed files with 7 additions and 2 deletions

View File

@ -795,9 +795,14 @@
}
}
// pass in 'arguments' in a fail callback of a $.ajax
context.JK.isNetworkError = function(failArgs) {
return false;
}
if(failArgs.length != 3) throw "expected 3 arguments from .fail of $ajax in isNetworkError"
var xhr = failArgs[0];
return xhr.status == 0;
}
context.JK.clientType = function () {
if (context.jamClient) {