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
8 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
0 deletions
-
src/commands/view/ComponentDelete.js
|
|
@ -17,6 +17,7 @@ module.exports = { |
|
|
} |
|
|
} |
|
|
if (component) { |
|
|
if (component) { |
|
|
const coll = component.collection; |
|
|
const coll = component.collection; |
|
|
|
|
|
component.trigger('component:destroy'); |
|
|
coll && coll.remove(component); |
|
|
coll && coll.remove(component); |
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
|
|