Skip to content

Instantly share code, notes, and snippets.

@jackfranklin
Created January 9, 2013 10:46
Show Gist options
  • Save jackfranklin/4492266 to your computer and use it in GitHub Desktop.
Save jackfranklin/4492266 to your computer and use it in GitHub Desktop.
app.Modules.myModule = {
init: function(){
this.bindEvents();
},
bindEvents: function(){
var self = this;
app.Events.on('user:added', self.userAdded());
this.username = $('#username');
},
userAdded: function(event, params){
console.log(params);
this.username.text(params.username);
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment