Skip to content

Instantly share code, notes, and snippets.

@reedling78
Created February 11, 2014 23:36
Show Gist options
  • Save reedling78/8946676 to your computer and use it in GitHub Desktop.
Save reedling78/8946676 to your computer and use it in GitHub Desktop.
JS: Backbone View
Backbone.View.extend({
el: $('body'),
initialize: function () {
console.log('View Initialized');
},
events : {
'click button': 'something'
},
something: function(){
alert('something');
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment