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

Commit 875df78

Browse files
committed
Fix typo in comment, code formatting, return type consistency
1 parent 663af70 commit 875df78

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

forcetk.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ if (forcetk.Client === undefined) {
117117
* Set a session token and the associated metadata in the client.
118118
* @param sessionId a salesforce.com session ID. In a Visualforce page,
119119
* use '{!$Api.sessionId}' to obtain a session ID.
120-
* @param [apiVersion="21.0"] Force.com API version
120+
* @param [apiVersion="27.0"] Force.com API version
121121
* @param [instanceUrl] Omit this if running on Visualforce; otherwise
122122
* use the value from the OAuth token.
123123
*/
@@ -200,9 +200,9 @@ if (forcetk.Client === undefined) {
200200
* @param mimetype of the file
201201
* @param callback function to which response will be passed
202202
* @param [error=null] function to which request will be passed in case of error
203-
* @param rety true if we've already tried refresh token flow once
204-
**/
205-
forcetk.Client.prototype.getChatterFile = function(path,mimeType,callback,error,retry) {
203+
* @param retry true if we've already tried refresh token flow once
204+
*/
205+
forcetk.Client.prototype.getChatterFile = function(path, mimeType, callback, error, retry) {
206206
var that = this;
207207
var url = this.instanceUrl + path;
208208

@@ -258,8 +258,8 @@ if (forcetk.Client === undefined) {
258258
* @param [error=null] function to which jqXHR will be passed in case of error
259259
* @param [method="GET"] HTTP method for call
260260
* @param [payload=null] payload for POST/PATCH etc
261-
* @param [paramMap={}] parameters to send as header values for POST/PATCH etc
262-
* @param [retry] specifies whether to retry on error
261+
* @param [paramMap={}] parameters to send as header values for POST/PATCH etc
262+
* @param [retry] specifies whether to retry on error
263263
*/
264264
forcetk.Client.prototype.apexrest = function(path, callback, error, method, payload, paramMap, retry) {
265265
var that = this;
@@ -388,7 +388,7 @@ if (forcetk.Client === undefined) {
388388
fieldlist = null;
389389
}
390390
var fields = fieldlist ? '?fields=' + fieldlist : '';
391-
this.ajax('/' + this.apiVersion + '/sobjects/' + objtype + '/' + id
391+
return this.ajax('/' + this.apiVersion + '/sobjects/' + objtype + '/' + id
392392
+ fields, callback, error);
393393
}
394394

@@ -484,4 +484,4 @@ if (forcetk.Client === undefined) {
484484
return this.ajax('/' + this.apiVersion + '/search?q=' + escape(sosl)
485485
, callback, error);
486486
}
487-
}
487+
}

0 commit comments

Comments
 (0)