Destroy underlying element when resetting or destroying Workspace

This commit is contained in:
Antonio Scandurra
2018-01-12 16:06:35 +01:00
parent 7f408e7791
commit a7e642e473
2 changed files with 9 additions and 1 deletions

View File

@@ -132,6 +132,10 @@ class WorkspaceElement extends HTMLElement {
return this
}
destroy () {
this.subscriptions.dispose()
}
getModel () { return this.model }
handleDragStart (event) {