Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Selector Function Extension
defaultOptions: {
"{comment}": "[data-comment]"
function(self) { return {
comment: {
remove: function(id) {
// Remove comment
.where("id", id)
// Trigger commentRemove
self.trigger("commentRemove", [id]);
"{deleteButton} click": function(deleteButton) {
var id = self.comment.of(deleteButton).data("id");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.