diff --git a/ionic/components/app/app.ts b/ionic/components/app/app.ts index 7ded2f46db..4264836db7 100644 --- a/ionic/components/app/app.ts +++ b/ionic/components/app/app.ts @@ -136,9 +136,6 @@ export class IonicApp { * @param {TODO} component The component to register */ register(id, component) { - if (this.components[id]) { - throw Error('Registered component id "' + id + '" already exists.'); - } this.components[id] = component; } diff --git a/ionic/components/app/id.ts b/ionic/components/app/id.ts index e2b7d96a75..a5456d9a59 100644 --- a/ionic/components/app/id.ts +++ b/ionic/components/app/id.ts @@ -1,6 +1,5 @@ -import {AppViewManager, ElementRef, Directive, Self, Type} from 'angular2/angular2'; +import {AppViewManager, ElementRef, Directive} from 'angular2/angular2'; -import {Ion} from '../ion'; import {IonicApp} from './app'; /** @@ -15,10 +14,8 @@ import {IonicApp} from './app'; export class IdRef { constructor(private app: IonicApp, private elementRef: ElementRef, private appViewManager: AppViewManager) { - // Grab the component this directive is attached to this.component = appViewManager.getComponent(elementRef); - } onInit() {