Skip to content

Instantly share code, notes, and snippets.

@kailuowang
Created August 24, 2011 23:20
Show Gist options
  • Save kailuowang/1169564 to your computer and use it in GitHub Desktop.
Save kailuowang/1169564 to your computer and use it in GitHub Desktop.
javascript Example of click event handle
var Note = Backbone.Model.extend({
initialize: function() {},
delete: function() {
//do something
this.log('deleted');
},
log: function(msg) {
alert(msg);
}
});
$('#interestingness').click(function(){
note.delete();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment