mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-04-14 05:55:00 -04:00
Fixed a few bugs.
This commit is contained in:
parent
2dde77f8b0
commit
8f95ad2787
3 changed files with 3 additions and 3 deletions
app
schemas/models
views/editor
|
@ -144,7 +144,7 @@ _.extend ThangTypeSchema.properties,
|
|||
|
||||
ThangTypeSchema.required = ['kind']
|
||||
|
||||
ThangTypeSchema.deafult =
|
||||
ThangTypeSchema.default =
|
||||
raw: {}
|
||||
|
||||
ThangTypeSchema.definitions =
|
||||
|
|
|
@ -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 }
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue