usergrid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From snoopd...@apache.org
Subject [1/3] git commit: added callback
Date Mon, 24 Feb 2014 21:21:30 GMT
Repository: incubator-usergrid
Updated Branches:
  refs/pull/59/head 09880621a -> 55b1a6462
  refs/pull/59/merge 7467b2a95 -> d47f58f6f (forced update)


added callback


Project: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/commit/55b1a646
Tree: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/tree/55b1a646
Diff: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/diff/55b1a646

Branch: refs/pull/59/head
Commit: 55b1a6462813ce17f883e48e3a1ca6b8cc2db886
Parents: 0988062
Author: amuramoto <amuramoto@apigee.com>
Authored: Mon Feb 24 12:20:12 2014 -0800
Committer: amuramoto <amuramoto@apigee.com>
Committed: Mon Feb 24 12:20:12 2014 -0800

----------------------------------------------------------------------
 sdks/html5-javascript/lib/modules/Client.js | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/55b1a646/sdks/html5-javascript/lib/modules/Client.js
----------------------------------------------------------------------
diff --git a/sdks/html5-javascript/lib/modules/Client.js b/sdks/html5-javascript/lib/modules/Client.js
index 8a0e3d2..6aac710 100644
--- a/sdks/html5-javascript/lib/modules/Client.js
+++ b/sdks/html5-javascript/lib/modules/Client.js
@@ -693,7 +693,7 @@
     *	 @param {string} revokeAll set to 'true' to revoke all tokens for the user        
   
     *  @return none
     */
-		Usergrid.Client.prototype.destroyToken = function (username, token, revokeAll) {
+		Usergrid.Client.prototype.destroyToken = function (username, token, revokeAll, callback)
{
       var options = {
 	        client:self,
 	        method:'PUT',	        
@@ -735,11 +735,11 @@
     *	 @param {string} revokeAll set to 'true' to revoke all tokens for the user        
     *  @return none
     */
-    Usergrid.Client.prototype.logoutAndDestroyToken = function(username, token, revokeAll)
{
+    Usergrid.Client.prototype.logoutAndDestroyToken = function(username, token, revokeAll,
callback) {
 			if (username == null) {
 				console.log('username required to revoke tokens');
 			} else {
-				this.destroyToken(username,token,revokeAll);
+				this.destroyToken(username, token, revokeAll, callback);
 				if (revokeAll == true || token == this.getToken() || token == null) {
 		    	this.setToken(null);
 		    }


Mime
View raw message