Couple tweaks.

This commit is contained in:
Scott Erickson 2014-08-28 13:53:00 -07:00
parent 8b056cfb8f
commit e3bc9045d1

View file

@ -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