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

Commit d2cbdce

Browse files
author
Pat Patterson
committed
Merge branch 'master' of github-sfdc:developerforce/Force.com-JavaScript-REST-Toolkit
2 parents be5cdd4 + 971566b commit d2cbdce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

forcetk.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ if (forcetk.Client === undefined) {
382382
* @param [error=null] function to which jqXHR will be passed in case of error
383383
*/
384384
forcetk.Client.prototype.retrieve = function(objtype, id, fieldlist, callback, error) {
385-
if (!arguments[4]) {
385+
if (arguments.length == 4) {
386386
error = callback;
387387
callback = fieldlist;
388388
fieldlist = null;

0 commit comments

Comments
 (0)