Skip to content

Commit

Permalink
Fixed incorrect constructor call
Browse files Browse the repository at this point in the history
  • Loading branch information
Sleeckx committed Feb 13, 2017
1 parent 48c7469 commit 97f7f0b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/WebComponents/AppRoute/app-route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ namespace Vidyano.WebComponents {
"use strict";

interface IAppRouteComponentConstructor extends HTMLElement {
new (app: App): IAppRouteComponentConstructor;
new (): IAppRouteComponentConstructor;
}

@WebComponent.register({
Expand Down Expand Up @@ -129,7 +129,7 @@ namespace Vidyano.WebComponents {

this._clearChildren();

const componentInstance = <WebComponent><any>new this._constructor(this.app);
const componentInstance = <WebComponent><any>new this._constructor();
Polymer.dom(this).appendChild(componentInstance);
Polymer.dom(this).flush();

Expand Down

0 comments on commit 97f7f0b

Please sign in to comment.