mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-23 23:58:02 -05:00
Couple tweaks.
This commit is contained in:
parent
8b056cfb8f
commit
e3bc9045d1
1 changed files with 3 additions and 2 deletions
|
@ -15,6 +15,7 @@ module.exports = class ThangComponentConfigView extends CocoView
|
|||
@component = options.component
|
||||
@config = options.config or {}
|
||||
@additionalDefaults = options.additionalDefaults
|
||||
@isDefaultComponent = false
|
||||
@world = options.world
|
||||
@level = options.level
|
||||
@callback = options.callback
|
||||
|
@ -86,9 +87,9 @@ module.exports = class ThangComponentConfigView extends CocoView
|
|||
|
||||
onConfigEdited: =>
|
||||
return if @handlingChange
|
||||
@config = @editThangTreema.data
|
||||
@config = @data()
|
||||
@changed = true
|
||||
@trigger 'changed', { component: @component, config: @data() }
|
||||
@trigger 'changed', { component: @component, config: @config }
|
||||
|
||||
data: -> @editThangTreema.data
|
||||
|
||||
|
|
Loading…
Reference in a new issue