|
|
|
@ -38,6 +38,7 @@ export default Backbone.View.extend({ |
|
|
|
this.listenTo(model, 'change:content', this.updateContent); |
|
|
|
this.listenTo(model, 'change', this.handleChange); |
|
|
|
this.listenTo(model, 'active', this.onActive); |
|
|
|
this.listenTo(model, 'disable', this.onDisable); |
|
|
|
$el.data('model', model); |
|
|
|
model.view = this; |
|
|
|
this.initClasses(); |
|
|
|
@ -74,6 +75,11 @@ export default Backbone.View.extend({ |
|
|
|
*/ |
|
|
|
onActive() {}, |
|
|
|
|
|
|
|
/** |
|
|
|
* Callback executed when the `disable` event is triggered on component |
|
|
|
*/ |
|
|
|
onDisable() {}, |
|
|
|
|
|
|
|
remove() { |
|
|
|
Backbone.View.prototype.remove.apply(this, arguments); |
|
|
|
this.removed(this._clbObj()); |
|
|
|
|