createCollection was executing its callback with an inconsistent arity
Project: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/commit/c6f1aa18 Tree: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/tree/c6f1aa18 Diff: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/diff/c6f1aa18 Branch: refs/pull/27/head Commit: c6f1aa182964a0a3322bc1b2a646c36d0f34e3f5 Parents: 7f50cae Author: ryan bridges <[email protected]> Authored: Mon Mar 3 15:21:10 2014 -0500 Committer: ryan bridges <[email protected]> Committed: Mon Mar 3 15:21:10 2014 -0500 ---------------------------------------------------------------------- sdks/html5-javascript/usergrid.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/c6f1aa18/sdks/html5-javascript/usergrid.js ---------------------------------------------------------------------- diff --git a/sdks/html5-javascript/usergrid.js b/sdks/html5-javascript/usergrid.js index 6658d69..d67cdde 100644 --- a/sdks/html5-javascript/usergrid.js +++ b/sdks/html5-javascript/usergrid.js @@ -767,8 +767,8 @@ function doCallback(callback, params, context) { */ Usergrid.Client.prototype.createCollection = function(options, callback) { options.client = this; - var collection = new Usergrid.Collection(options, function(err, data) { - doCallback(callback, [ err, collection, data ]); + var collection = new Usergrid.Collection(options, function(err, response, collection) { + doCallback(callback, [ err, collection, response ], collection); }); }; /* @@ -3061,4 +3061,4 @@ Usergrid.Asset.prototype.download = function(callback) { return UsergridError; }; return global[name]; -})(this); \ No newline at end of file +})(this);
