Permalink
Browse files

test

  • Loading branch information...
1 parent adaec67 commit 205956dbc2256aa70618064927148e2b720434fe @usagi committed May 16, 2012
Showing with 5 additions and 5 deletions.
  1. +5 −5 index.html
View
@@ -5,11 +5,11 @@
twttr.anywhere(function(t){
if(t.isConnected()){
console.dir("a");
- var currentUser = t.User.current;
- var screenName = currentUser.data('screen_name');
- var profileImage = currentUser.data('profile_image_url');
- var profileImageTag = "<img src='" + profileImage + "'>";
- getElementById('t').innerHTML = "Logged in as " + profileImageTag + " " + screenName;
+ var u = t.currentUser;
+ var name = u.data('screen_name');
+ var image = u.data('profile_image_url');
+ var image_tag = "<img src='" + image + "'>";
+ getElementById('t').innerHTML = "Logged in as " + image_tag + " " + screenName;
}else{
console.dir("b");
t('#t').connectButton();

0 comments on commit 205956d

Please sign in to comment.