Skip to content

Commit

Permalink
Merge branch 'master' of git://github.com/jwheare/www.playdar.org
Browse files Browse the repository at this point in the history
  • Loading branch information
jwheare committed May 16, 2009
2 parents 61dabc0 + 3c5378c commit c112b41
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions static/playdar.js
Expand Up @@ -313,12 +313,20 @@ Playdar.Client.prototype = {
queries: {}
};
},
handle_resolution: function (response) {
recheck_results: function (qid) {
var query = {
qid: qid
};
this.resolutions_in_progress.queries[qid] = query;
this.resolutions_in_progress.count++;
this.handle_resolution(query);
},
handle_resolution: function (query) {
// Check resolving hasn't been cancelled
if (this.resolutions_in_progress.queries[response.qid]) {
this.last_qid = response.qid;
if (this.resolutions_in_progress.queries[query.qid]) {
this.last_qid = query.qid;
this.resolve_qids.push(this.last_qid);
this.get_results(response.qid);
this.get_results(query.qid);
}
},

Expand Down Expand Up @@ -420,6 +428,8 @@ Playdar.Client.prototype = {
* of extra query parameters.
**/
get_url: function (method, jsonp, query_params) {
var call_id = new Date().getTime();
query_params.call_id = call_id;
query_params = query_params || {};
query_params.method = method;
if (!query_params.jsonp) {
Expand Down

0 comments on commit c112b41

Please sign in to comment.