Skip to content

Instantly share code, notes, and snippets.

@burtlo
Created July 16, 2013 16:49
Show Gist options
  • Save burtlo/6010439 to your computer and use it in GitHub Desktop.
Save burtlo/6010439 to your computer and use it in GitHub Desktop.
Bob with a little Backbone
$(function() {
var AppView = Backbone.View.extend({
el: $("#bobForm"),
events: {
"submit" : "askBob"
},
initialize: function() {
console.log("initializing bob app view");
},
askBob: function(e) {
e.preventDefault();
console.log("Asking Bob Something");
}
});
var App = new AppView;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment