From c006e6f7edd82680689a65bca1d0a1d8724ca847 Mon Sep 17 00:00:00 2001 From: Jordan Jones Date: Thu, 26 Sep 2024 10:27:14 -0700 Subject: [PATCH] perf: refactor custom component registration config --- demo/index.html | 7 +++++-- demo/index.md | 6 ++++-- docs/partials/index.md | 6 ++++-- index.js | 15 ++------------- 4 files changed, 15 insertions(+), 19 deletions(-) diff --git a/demo/index.html b/demo/index.html index 0575f9c..13f0551 100644 --- a/demo/index.html +++ b/demo/index.html @@ -39,10 +39,13 @@ diff --git a/demo/index.md b/demo/index.md index c560f01..eaac1be 100644 --- a/demo/index.md +++ b/demo/index.md @@ -296,8 +296,10 @@ There are two important parts of every Auro component. The { - // alias definition - if (!customElements.get(name)) { - customElements.define(name, class extends AuroCarousel {}); - } -} - -export { registerComponent } +RuntimeUtils.default.prototype.registerComponent('custom-carousel', AuroCarousel);