Cleaning up editors in the systems and components tabs.

This commit is contained in:
Scott Erickson 2014-01-30 12:19:25 -08:00
parent 231e8582fa
commit 5429e8ad2a
2 changed files with 8 additions and 0 deletions

View file

@ -87,3 +87,7 @@ module.exports = class LevelComponentEditView extends View
endEditing: (e) ->
Backbone.Mediator.publish 'level-component-editing-ended', levelComponent: @levelComponent
null
destroy: ->
super()
@editor?.destroy()

View file

@ -87,3 +87,7 @@ module.exports = class LevelSystemEditView extends View
endEditing: (e) ->
Backbone.Mediator.publish 'level-system-editing-ended', levelSystem: @levelSystem
null
destroy: ->
super()
@editor?.destroy()