Skip to content

Instantly share code, notes, and snippets.

@valdezm
Created November 21, 2012 01:14
Show Gist options
  • Save valdezm/4122430 to your computer and use it in GitHub Desktop.
Save valdezm/4122430 to your computer and use it in GitHub Desktop.
getU: function(callback_A, nothing){
var that = this;
//this.username=nothing;
if(this.u_ready == "-1"){
this.setupU(function(user){
nothing = user;
that.username = nothing;
//alert("returning username:"+nothing);
alert("returning this:"+this.username);
callback_A(user);
});
}
},
getUNOTWORKING: function(callback_A, nothing){
this.username=nothing;
if(this.u_ready == "-1"){
this.setupU(function(user){
nothing = user;
this.username = nothing;
//alert("returning username:"+nothing);
alert("returning this:"+this.username);
callback_A(user);
});
}
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment