Skip to content

Commit 46b249e

Browse files
committed
Added possibility to perform synchronous ajax requests.
1 parent a6f3946 commit 46b249e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

forcetk.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ if (forcetk.Client === undefined) {
7777
this.sessionId = null;
7878
this.apiVersion = null;
7979
this.instanceUrl = null;
80+
this.asyncAjax = true;
8081
}
8182

8283
/**
@@ -149,6 +150,7 @@ if (forcetk.Client === undefined) {
149150

150151
$j.ajax({
151152
type: method || "GET",
153+
async: this.asyncAjax,
152154
url: (this.proxyUrl !== null) ? this.proxyUrl: url,
153155
contentType: 'application/json',
154156
processData: false,

0 commit comments

Comments
 (0)