diff --git a/examples/blog/dummy-component.ts b/examples/blog/dummy-component.ts index 208aa1b..01af47b 100644 --- a/examples/blog/dummy-component.ts +++ b/examples/blog/dummy-component.ts @@ -9,7 +9,6 @@ class MyComponent extends Component { @action increment(): void { - debugger; this.count++; } } diff --git a/packages/@emberx/link-to/index.ts b/packages/@emberx/link-to/index.ts index 7f0c868..76a281b 100644 --- a/packages/@emberx/link-to/index.ts +++ b/packages/@emberx/link-to/index.ts @@ -88,7 +88,6 @@ export default class extends Component<{ get link() { const targetModel = this.buildModel(); - debugger; return this.router.recognizer.generate(this.args.route, targetModel); // TODO: append queryParams } diff --git a/packages/@emberx/route/lib/index.ts b/packages/@emberx/route/lib/index.ts index a74459a..794d110 100644 --- a/packages/@emberx/route/lib/index.ts +++ b/packages/@emberx/route/lib/index.ts @@ -40,7 +40,6 @@ export default class Route extends Component<{ model: object }> { containerElement.innerHTML = ''; // TODO: temporary solution, clear previously rendered route - debugger; renderComponent(this, { element: containerElement, args: { model: model || {} }, diff --git a/packages/@emberx/test-helpers/lib/input/fill-in.ts b/packages/@emberx/test-helpers/lib/input/fill-in.ts index 7b9a83d..2638ef1 100644 --- a/packages/@emberx/test-helpers/lib/input/fill-in.ts +++ b/packages/@emberx/test-helpers/lib/input/fill-in.ts @@ -13,13 +13,11 @@ export default async function fillIn(target: Target, text: string): Promise -1 && diff --git a/test/deno-render-component.ts b/test/deno-render-component.ts new file mode 100644 index 0000000..d16b335 --- /dev/null +++ b/test/deno-render-component.ts @@ -0,0 +1,29 @@ +let { DOMParser, Element } = await import('https://deno.land/x/deno_dom/deno-dom-wasm.ts'); +let { hbs, renderComponent } = await import('./packages/@emberx/component/dist/index.js'); + +const document = new DOMParser().parseFromString( + ` +

Hello World!

+
+

Hello from Deno!

+`, + 'text/html' +); + +const element = document.getElementById('app'); + +window.HTMLElement = Element; +window.document = document; + +console.log(renderComponent.toString()); +renderComponent(lol, { + element: element, + + owner: { + services: { + // locale: new LocaleService('en_US'), + }, + }, +}); + +console.log(document.getElementById('app').textContent);