mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-04-26 22:13:32 -04: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
app/views/editor/level
|
@ -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…
Add table
Add a link
Reference in a new issue