@@ -117,7 +117,7 @@ if (forcetk.Client === undefined) {
117
117
* Set a session token and the associated metadata in the client.
118
118
* @param sessionId a salesforce.com session ID. In a Visualforce page,
119
119
* 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
121
121
* @param [instanceUrl] Omit this if running on Visualforce; otherwise
122
122
* use the value from the OAuth token.
123
123
*/
@@ -200,9 +200,9 @@ if (forcetk.Client === undefined) {
200
200
* @param mimetype of the file
201
201
* @param callback function to which response will be passed
202
202
* @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 ) {
206
206
var that = this ;
207
207
var url = this . instanceUrl + path ;
208
208
@@ -258,8 +258,8 @@ if (forcetk.Client === undefined) {
258
258
* @param [error=null] function to which jqXHR will be passed in case of error
259
259
* @param [method="GET"] HTTP method for call
260
260
* @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
263
263
*/
264
264
forcetk . Client . prototype . apexrest = function ( path , callback , error , method , payload , paramMap , retry ) {
265
265
var that = this ;
@@ -388,7 +388,7 @@ if (forcetk.Client === undefined) {
388
388
fieldlist = null ;
389
389
}
390
390
var fields = fieldlist ? '?fields=' + fieldlist : '' ;
391
- this . ajax ( '/' + this . apiVersion + '/sobjects/' + objtype + '/' + id
391
+ return this . ajax ( '/' + this . apiVersion + '/sobjects/' + objtype + '/' + id
392
392
+ fields , callback , error ) ;
393
393
}
394
394
@@ -484,4 +484,4 @@ if (forcetk.Client === undefined) {
484
484
return this . ajax ( '/' + this . apiVersion + '/search?q=' + escape ( sosl )
485
485
, callback , error ) ;
486
486
}
487
- }
487
+ }
0 commit comments