Skip to content

Instantly share code, notes, and snippets.

@isaiahdw
Created November 23, 2011 20:19
Show Gist options
  • Save isaiahdw/1389779 to your computer and use it in GitHub Desktop.
Save isaiahdw/1389779 to your computer and use it in GitHub Desktop.
var View_Optimization_Sidebar = Backbone.View.extend({
el: $(".sidebar-content"),
template: "#sidebar-value-calculationsApp",
events: {
"click": "button_clicked"
},
initialize: function() {
},
render: function() {
this.el.append(Mustache.to_html($(this.template).html()));
},
button_clicked: function() {
alert('testing');
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment