Skip to content

Commit

Permalink
Merge pull request developerforce#7 from Shedal/patch-1
Browse files Browse the repository at this point in the history
Added possibility to perform synchronous ajax requests.
  • Loading branch information
Pat Patterson committed Jun 30, 2011
2 parents fb8b68a + 46b249e commit 4ee9b45
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions forcetk.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ if (forcetk.Client === undefined) {
this.sessionId = null;
this.apiVersion = null;
this.instanceUrl = null;
this.asyncAjax = true;
}

/**
Expand Down Expand Up @@ -150,6 +151,7 @@ if (forcetk.Client === undefined) {

$j.ajax({
type: method || "GET",
async: this.asyncAjax,
url: (this.proxyUrl !== null) ? this.proxyUrl: url,
contentType: 'application/json',
cache: false,
Expand Down

0 comments on commit 4ee9b45

Please sign in to comment.