Skip to content

Commit 5eb681a

Browse files
committed
Change paramMap order in parameters and method name in error callback.
Signed-off-by: Alex Berg <[email protected]>
1 parent 12a4b73 commit 5eb681a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

forcetk.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,7 @@ if (forcetk.Client === undefined) {
250250
* @param [method="GET"] HTTP method for call
251251
* @param [payload=null] payload for POST/PATCH etc
252252
* @param [paramMap={}] parameters to send as header values for POST/PATCH etc
253+
* @param [retry] specifies whether to retry on error
253254
*/
254255
forcetk.Client.prototype.apexrest = function(path, callback, error, method, payload, paramMap, retry) {
255256
var that = this;
@@ -269,7 +270,7 @@ if (forcetk.Client === undefined) {
269270
that.refreshAccessToken(function(oauthResponse) {
270271
that.setSessionToken(oauthResponse.access_token, null,
271272
oauthResponse.instance_url);
272-
that.ajax(path, callback, error, method, payload, true);
273+
that.apexrest(path, callback, error, method, payload, paramMap, true);
273274
},
274275
error);
275276
} else {

0 commit comments

Comments
 (0)