From e3bc9045d15c01992fd2acd63a743dc8fb846e6a Mon Sep 17 00:00:00 2001 From: Scott Erickson Date: Thu, 28 Aug 2014 13:53:00 -0700 Subject: [PATCH] Couple tweaks. --- app/views/editor/component/ThangComponentConfigView.coffee | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/views/editor/component/ThangComponentConfigView.coffee b/app/views/editor/component/ThangComponentConfigView.coffee index 320be5e6d..418dcd9cb 100644 --- a/app/views/editor/component/ThangComponentConfigView.coffee +++ b/app/views/editor/component/ThangComponentConfigView.coffee @@ -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