From f41a3490e57867048a8afed7e34ad70b76a02b86 Mon Sep 17 00:00:00 2001 From: Pontus Lundin Date: Wed, 18 Mar 2020 07:58:52 +0100 Subject: [PATCH] update comment --- src/runtime/internal/Component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/runtime/internal/Component.ts b/src/runtime/internal/Component.ts index 31fb58d740..f8de4388b4 100644 --- a/src/runtime/internal/Component.ts +++ b/src/runtime/internal/Component.ts @@ -56,7 +56,7 @@ export function mount_component(component, target, anchor) { const { fragment, on_mount, on_destroy, after_update } = component.$$; fragment && fragment.m(target, anchor); - + // custom element: call onMount in connectedCallback instead if (component.shadowRoot) return; @@ -182,7 +182,7 @@ if (typeof HTMLElement === 'function') { const new_on_destroy = this.$$.on_mount.map(run).filter(is_function); this.$$.on_destroy.push(...new_on_destroy); - // don't reset on_mount array to not infer with reinsertion? + // don't reset on_mount array as not to interfere with reinsertion } attributeChangedCallback(attr, _oldValue, newValue) {