changeset 50:5517ac16c9fb

comment+whitespace
author Jeff Hammel <jhammel@mozilla.com>
date Mon, 30 Dec 2013 22:55:29 -0800
parents 8358634e3d75
children 12342551537b
files bitsyauth/js/persona.js
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/bitsyauth/js/persona.js
+++ b/bitsyauth/js/persona.js
@@ -29,21 +29,22 @@ function persona(loggedInUser, onloginUR
                                     success: function(res, status, xhr) { window.location.reload(); },
                                     error: function(xhr, status, err) {
                                         alert("Logout failure: " + err);
                                     }
                                    });
                         }
                        });
 
-  // 
+  // add click handlers to signin, signout buttons
   var signinLink = document.getElementById('signin');
   if (signinLink) {
       signinLink.onclick = function() {
           navigator.id.request();
       };
   }
-
   var signoutLink = document.getElementById('signout');
   if (signoutLink) {
-      signoutLink.onclick = function() { navigator.id.logout(); };
+      signoutLink.onclick = function() {
+          navigator.id.logout();
+      };
   }
 }
\ No newline at end of file