If I have a view in backbone.js and it has an event in the event list:
events: {
'click #somebutton': 'clicked'
},
clicked: function () {
console.log('clicked');
}
How can I disable / enable this event? So, for example, if you click it, the event is deleted (the button remains on the screen, but is inactive, etc.). When some other part of the view is updated or something is turned on in this case. Of course, I can use jquery, but I want to know if this functionality is available in the trunk.
Thanks for any answers.
Floor
source
share