comparison example/persona.html @ 41:d4522af2c6e5

refactor
author Jeff Hammel <jhammel@mozilla.com>
date Sat, 28 Dec 2013 12:56:06 -0800
parents cb1d21648588
children 54a53bbe5be9
comparison
equal deleted inserted replaced
40:cb1d21648588 41:d4522af2c6e5
45 error: function(xhr, status, err) { alert("Logout failure: " + err); } 45 error: function(xhr, status, err) { alert("Logout failure: " + err); }
46 }); 46 });
47 } 47 }
48 }); 48 });
49 49
50
50 var signinLink = document.getElementById('signin'); 51 var signinLink = document.getElementById('signin');
51 if (signinLink) { 52 if (signinLink) {
52 signinLink.onclick = function() { navigator.id.request(); 53 signinLink.onclick = function() {
54 navigator.id.request();
53 nclicks += 1; 55 nclicks += 1;
54 $('clickcounter').append('<li>This is click ' + nclicks + '</li>'); 56 $('#clickcounter').append('<li>This is click ' + nclicks + '</li>');
55 }; 57 };
56 } 58 }
57 59
58 var signoutLink = document.getElementById('signout'); 60 var signoutLink = document.getElementById('signout');
59 if (signoutLink) { 61 if (signoutLink) {