mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-02-17 08:50:58 -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
|
@component = options.component
|
||||||
@config = options.config or {}
|
@config = options.config or {}
|
||||||
@additionalDefaults = options.additionalDefaults
|
@additionalDefaults = options.additionalDefaults
|
||||||
|
@isDefaultComponent = false
|
||||||
@world = options.world
|
@world = options.world
|
||||||
@level = options.level
|
@level = options.level
|
||||||
@callback = options.callback
|
@callback = options.callback
|
||||||
|
@ -86,9 +87,9 @@ module.exports = class ThangComponentConfigView extends CocoView
|
||||||
|
|
||||||
onConfigEdited: =>
|
onConfigEdited: =>
|
||||||
return if @handlingChange
|
return if @handlingChange
|
||||||
@config = @editThangTreema.data
|
@config = @data()
|
||||||
@changed = true
|
@changed = true
|
||||||
@trigger 'changed', { component: @component, config: @data() }
|
@trigger 'changed', { component: @component, config: @config }
|
||||||
|
|
||||||
data: -> @editThangTreema.data
|
data: -> @editThangTreema.data
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue