mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-28 01:55:38 -05:00
ThangType editor now deletes properties properly.
This commit is contained in:
parent
67684b89d5
commit
e6c0d53d50
1 changed files with 3 additions and 2 deletions
|
@ -407,8 +407,9 @@ module.exports = class ThangTypeEditView extends RootView
|
|||
pushChangesToPreview: =>
|
||||
return if @temporarilyIgnoringChanges
|
||||
# TODO: This doesn't delete old Treema keys you deleted
|
||||
for key, value of @treema.data
|
||||
@thangType.set(key, value)
|
||||
for key of @thangType.attributes
|
||||
continue if key is 'components'
|
||||
@thangType.set(key, @treema.data[key])
|
||||
@updateSelectBox()
|
||||
@refreshAnimation()
|
||||
@updateDots()
|
||||
|
|
Loading…
Reference in a new issue