skip observedAttributes where appropriate - fixes #2399

pull/2406/head
Richard Harris 6 years ago
parent 079a1ba276
commit d2568aa583

@ -464,9 +464,10 @@ export default function dom(
}
}
${props.length > 0 && deindent`
static get observedAttributes() {
return ${JSON.stringify(props.map(x => x.export_name))};
}
}`}
${body.length > 0 && body.join('\n\n')}
}

@ -49,10 +49,6 @@ class Component extends SvelteElement {
}
}
}
static get observedAttributes() {
return [];
}
}
customElements.define("custom-element", Component);

Loading…
Cancel
Save