mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-03-14 07:00:01 -04:00
Fixed #296
This commit is contained in:
parent
46d1d10abe
commit
3093b59588
1 changed files with 7 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue