This commit is contained in:
Scott Erickson 2014-01-30 16:25:06 -08:00
parent 46d1d10abe
commit 3093b59588

View file

@ -306,13 +306,18 @@ module.exports = class ThangTypeEditView extends View
clearRawData: ->
@thangType.resetRawData()
@thangType.set 'actions', undefined
@clearDisplayObject()
@treema.set('/', @getThangData())
getThangData: ->
data = _.cloneDeep(@thangType.attributes)
data = _.pick data, (value, key) => not (key in ['components'])
buildTreema: ->
data = _.cloneDeep(@thangType.attributes)
data = @getThangData()
schema = _.cloneDeep ThangType.schema.attributes
schema.properties = _.pick schema.properties, (value, key) => not (key in ['components'])
data = _.pick data, (value, key) => not (key in ['components'])
options =
data: data
schema: schema