From b80990daaf4894140919fd8174c8110a4a442a90 Mon Sep 17 00:00:00 2001 From: Ivan Hofer Date: Sat, 14 Nov 2020 17:48:00 +0100 Subject: [PATCH] rename 'that' to 'component' --- src/runtime/internal/Component.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/runtime/internal/Component.ts b/src/runtime/internal/Component.ts index 763974adfb..8be0b7cb19 100644 --- a/src/runtime/internal/Component.ts +++ b/src/runtime/internal/Component.ts @@ -98,11 +98,11 @@ function make_dirty(component, i) { } -export function addCssToComponent(that, add_css, options) { - that.$$ = { +export function addCssToComponent(component, add_css, options) { + component.$$ = { customStyleTag: options.customStyleTag || current_component && current_component.$$.customStyleTag }; - add_css(that.$$.customStyleTag); + add_css(component.$$.customStyleTag); } export function init(component, options, instance, create_fragment, not_equal, props, dirty = [-1]) {