You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@usergrid.apache.org by sn...@apache.org on 2014/03/06 20:21:38 UTC
[23/50] [abbrv] git commit: createCollection was executing its
callback with an inconsistent arity
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/60/head
Commit: c6f1aa182964a0a3322bc1b2a646c36d0f34e3f5
Parents: 7f50cae
Author: ryan bridges <rb...@apigee.com>
Authored: Mon Mar 3 15:21:10 2014 -0500
Committer: ryan bridges <rb...@apigee.com>
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);