Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- NotesView = Backbone.View.extend({
- initialize: function() {
- this.render();
- },
- render: function() {
- var variables = { label: "hello" };
- var template = _.template( $('#template').html(), variables );
- this.el.html( template );
- },
- events: {
- "click input[type=button]": "doAlert"
- },
- doAlert: function (event) {
- alert("you clicked on me ??!!");
- }
- });
Add Comment
Please, Sign In to add comment