ThangType editor now deletes properties properly.

This commit is contained in:
Scott Erickson 2014-10-28 14:22:29 -07:00
parent 67684b89d5
commit e6c0d53d50

View file

@ -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()