Skip to content

Commit acdb645

Browse files
Olivier Allouchflovilmart
authored andcommitted
Insist on the difference between 'first' and 'get' (#590)
Users shouldn't expect an undefined when calling get.
1 parent c8e2a4a commit acdb645

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ParseQuery.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ class ParseQuery {
382382
/**
383383
* Constructs a Parse.Object whose id is already known by fetching data from
384384
* the server. Either options.success or options.error is called when the
385-
* find completes.
385+
* find completes. Unlike the <code>first</code> method, it never returns undefined.
386386
*
387387
* @param {String} objectId The id of the object to be fetched.
388388
* @param {Object} options A Backbone-style options object.

0 commit comments

Comments
 (0)