mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-02-17 08:50:58 -05:00
Cleaning up editors in the systems and components tabs.
This commit is contained in:
parent
231e8582fa
commit
5429e8ad2a
2 changed files with 8 additions and 0 deletions
|
@ -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()
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue