Log out whether or not the server reports success
authorChip Black <bytex64@bytex64.net>
Mon, 7 Mar 2011 04:59:59 +0000 (20:59 -0800)
committerChip Black <bytex64@bytex64.net>
Mon, 7 Mar 2011 05:00:20 +0000 (21:00 -0800)
www/js/blerg.js

index b882dd9..b0bc38f 100644 (file)
@@ -69,7 +69,7 @@ LoginStatus.prototype.logout = function() {
         parameters: {
             username: this.username
         },
-        onSuccess: function(r) {
+        onComplete: function(r) {
             this.loggedIn = false;
             document.cookie = "auth=; expires=1-Jan-1970 00:00:00 GMT";
             this.update();