Fixed a few bugs.

This commit is contained in:
Scott Erickson 2014-08-28 15:42:46 -07:00
parent 2dde77f8b0
commit 8f95ad2787
3 changed files with 3 additions and 3 deletions

View file

@ -144,7 +144,7 @@ _.extend ThangTypeSchema.properties,
ThangTypeSchema.required = ['kind']
ThangTypeSchema.deafult =
ThangTypeSchema.default =
raw: {}
ThangTypeSchema.definitions =

View file

@ -86,7 +86,7 @@ module.exports = class ThangComponentConfigView extends CocoView
@$el.find('.panel-body').hide()
onConfigEdited: =>
return if @handlingChange
return if @destroyed or @handlingChange
@config = @data()
@changed = true
@trigger 'changed', { component: @component, config: @config }

View file

@ -69,7 +69,7 @@ module.exports = class ThangTypeEditView extends RootView
context
getAnimationNames: ->
raw = _.keys(@thangType.get('raw').animations)
raw = _.keys(@thangType.get('raw', true).animations)
raw = ("raw:#{name}" for name in raw)
main = _.keys(@thangType.get('actions') or {})
main.concat(raw)