Skip to content
This repository was archived by the owner on Jan 10, 2024. It is now read-only.

Commit f388155

Browse files
author
Pat Patterson
committed
Merge branch 'master' of github-sfdc:developerforce/Force.com-JavaScript-REST-Toolkit
2 parents bbcc49e + 4ee9b45 commit f388155

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

forcetk.js

Lines changed: 4 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
/**
@@ -98,6 +99,7 @@ if (forcetk.Client === undefined) {
9899
$j.ajax({
99100
type: 'POST',
100101
url: (this.proxyUrl !== null) ? this.proxyUrl: url,
102+
cache: false,
101103
processData: false,
102104
data: 'grant_type=refresh_token&client_id=' + this.clientId + '&refresh_token=' + this.refreshToken,
103105
success: callback,
@@ -149,8 +151,10 @@ if (forcetk.Client === undefined) {
149151

150152
$j.ajax({
151153
type: method || "GET",
154+
async: this.asyncAjax,
152155
url: (this.proxyUrl !== null) ? this.proxyUrl: url,
153156
contentType: 'application/json',
157+
cache: false,
154158
processData: false,
155159
data: payload,
156160
success: callback,

0 commit comments

Comments
 (0)