-
Notifications
You must be signed in to change notification settings - Fork 172
Closed
Description
Looking at https://github.com/NYTimes/backbone.stickit/blob/master/backbone.stickit.js#L115-L136; I notice you're throwing events into this.events and then re-invoking this.delegateEvents.
Can we change that to invoking this.$el.on and then (on unstickit) calling this.$el.off?
The main problem is as follows:
List = Backbone.View.extend({
bindings: {
'.actions .selector': {
observe: '$checked'
}
},
events: {
'change .selector': function(event) {
// ...
}
}
);I only want the manual event binding to be invoked when directly changing the checkbox via a click. However, I do want the the bindings hash to sync the state of the checkbox with the model.