Created
August 24, 2011 23:20
-
-
Save kailuowang/1169564 to your computer and use it in GitHub Desktop.
javascript Example of click event handle
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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