Skip to content

Instantly share code, notes, and snippets.

@tommedema
Created May 26, 2011 20:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save tommedema/993989 to your computer and use it in GitHub Desktop.
Save tommedema/993989 to your computer and use it in GitHub Desktop.
var someFunc = function() {
var something,
me = this;
somethingElse.on('someEvent', function() {
//this points to somewhere else now
me.something = 'hi';
});
}();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment