Browse Source

Merge pull request #1482 from david-polak/add-component-destroy Closes #1481

Add event component:destroy to ComponentDelete
pull/1503/head
Artur Arseniev 7 years ago
committed by GitHub
parent
commit
72016ec4d8
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      src/commands/view/ComponentDelete.js

1
src/commands/view/ComponentDelete.js

@ -17,6 +17,7 @@ module.exports = {
}
if (component) {
const coll = component.collection;
component.trigger('component:destroy');
coll && coll.remove(component);
}
});

Loading…
Cancel
Save