Browse Source

Use `remove` event instead of `destroy`

pull/798/merge
Artur Arseniev 8 years ago
parent
commit
ab0480d71e
  1. 2
      src/dom_components/model/Component.js

2
src/dom_components/model/Component.js

@ -176,7 +176,7 @@ const Component = Backbone.Model.extend(Styleable).extend(
this.config = opt.config || {};
this.ccid = Component.createId(this);
this.set('attributes', this.get('attributes') || {});
this.on('destroy', this.handleRemove);
this.on('remove', this.handleRemove);
this.listenTo(this, 'change:script', this.scriptUpdated);
this.listenTo(this, 'change:traits', this.traitsUpdated);
this.listenTo(this, 'change:tagName', this.tagUpdated);

Loading…
Cancel
Save