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/17 18:20:50 UTC

[2/4] git commit: added callback

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/heads/master
Commit: 55b1a6462813ce17f883e48e3a1ca6b8cc2db886
Parents: 0988062
Author: amuramoto <am...@apigee.com>
Authored: Mon Feb 24 12:20:12 2014 -0800
Committer: amuramoto <am...@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);
 		    }