Skip to content

Instantly share code, notes, and snippets.

@valdezm
Created November 21, 2012 00:54
Show Gist options
  • Save valdezm/4122349 to your computer and use it in GitHub Desktop.
Save valdezm/4122349 to your computer and use it in GitHub Desktop.
some file:
var aTest={
user: "nothing",
a: function(q){this.user = q;
}
}
another js file:
// alert(aTest.user);
// aTest.a("tettgg");
//alert(aTest.user);
the state is correct, aTest.user now points to tettg...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment