Skip to content

Commit

Permalink
log results
Browse files Browse the repository at this point in the history
  • Loading branch information
edsu committed Sep 16, 2013
1 parent 33d194a commit 3b2bc0e
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions app.js
Expand Up @@ -72,10 +72,13 @@ function worldcat(callback, maxseq) {
console.log("results are null when fetching " + url);
results = [];
}
console.log(results);
results.newrec.map(function (item) {
annotate(item, callback);
});
if (results.newrec and results.newrec.length > 0) {
results.newrec.map(function (item) {
annotate(item, callback);
});
} else {
console.log("results.newrec is not defined or is empty: " + results.newrec);
}
setTimeout(function() {
worldcat(callback, results.maxseq);
}, 10000);
Expand Down

0 comments on commit 3b2bc0e

Please sign in to comment.