File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff 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 ,
You can’t perform that action at this time.
0 commit comments