Skip to content

Commit

Permalink
cast to json so set 'requestProcessingTime' in objectCompare will works
Browse files Browse the repository at this point in the history
  • Loading branch information
longzai1988 committed May 25, 2015
1 parent 0c42a19 commit 6bc74ab
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion jay.js
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,12 @@ var Jay = {};
for(var a=0;a<3;a++)
{
Jay.queue(Jay.bestNodes[a], parameters, function(resp, status, xhr) {
vld.push(resp);
try {
vld.push(JSON.parse(resp));
}
catch (err) {
onFailure({ "error": "Unable to Validate" }, "error", xhr);
}
if(vld.length == 3)
{
// compare
Expand Down

0 comments on commit 6bc74ab

Please sign in to comment.