Repository: usergrid Updated Branches: refs/heads/master 2e89eda2f -> 733ada668
Update hasNextPage to return boolean The `hasNextPage` method returned evaluation of its `_next` property, which is either a string or null. Method documentation says it returns a boolean value. The result is now `_next` forced to boolean using `!!`. Project: http://git-wip-us.apache.org/repos/asf/usergrid/repo Commit: http://git-wip-us.apache.org/repos/asf/usergrid/commit/8f83aa92 Tree: http://git-wip-us.apache.org/repos/asf/usergrid/tree/8f83aa92 Diff: http://git-wip-us.apache.org/repos/asf/usergrid/diff/8f83aa92 Branch: refs/heads/master Commit: 8f83aa92d1118584144cfcccd3a3dda3648fcc02 Parents: cfde37a Author: William King <[email protected]> Authored: Fri Sep 4 11:37:18 2015 -0500 Committer: William King <[email protected]> Committed: Fri Sep 4 11:37:18 2015 -0500 ---------------------------------------------------------------------- sdks/nodejs/lib/usergrid.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/usergrid/blob/8f83aa92/sdks/nodejs/lib/usergrid.js ---------------------------------------------------------------------- diff --git a/sdks/nodejs/lib/usergrid.js b/sdks/nodejs/lib/usergrid.js index 892b180..711fb66 100755 --- a/sdks/nodejs/lib/usergrid.js +++ b/sdks/nodejs/lib/usergrid.js @@ -2050,7 +2050,7 @@ Usergrid.Client.prototype.delete = function(opts, callback) { * @return {boolean} returns true if there is a next page of data, false otherwise */ Usergrid.Collection.prototype.hasNextPage = function () { - return (this._next); + return !!this._next; } /*
