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.
Looking at https://github.com/NYTimes/backbone.stickit/blob/master/backbone.stickit.js#L115-L136; I notice you're throwing events into
this.eventsand then re-invokingthis.delegateEvents.Can we change that to invoking
this.$el.onand then (onunstickit) callingthis.$el.off?The main problem is as follows:
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.