don't save customStyleTag in component.$$

pull/5639/head
Ivan Hofer 5 years ago
parent b6e9574805
commit e8065eb22e

@ -98,11 +98,11 @@ function make_dirty(component, i) {
} }
export function add_css_to_component(component, add_css, options) { let appendStylesTo = document.head;
component.$$ = {
customStyleTag: options.customStyleTag || current_component && current_component.$$.customStyleTag export function add_css_to_component(add_css, { customStyleTag }) {
}; if (customStyleTag) appendStylesTo = customStyleTag;
add_css(component.$$.customStyleTag || document.head); add_css(appendStylesTo);
} }
export function init(component, options, instance, create_fragment, not_equal, props, dirty = [-1]) { export function init(component, options, instance, create_fragment, not_equal, props, dirty = [-1]) {
@ -112,8 +112,6 @@ export function init(component, options, instance, create_fragment, not_equal, p
const prop_values = options.props || {}; const prop_values = options.props || {};
const $$: T$$ = component.$$ = { const $$: T$$ = component.$$ = {
...component.$$,
fragment: null, fragment: null,
ctx: null, ctx: null,

Loading…
Cancel
Save