fix(overlays): OverlayController interface

This commit is contained in:
Manu Mtz.-Almeida
2018-03-13 19:45:36 +01:00
parent cc4fecc1be
commit 6e2ca85b2a
12 changed files with 25 additions and 38 deletions

View File

@ -1,6 +1,4 @@
export function proxyMethod(ctrlName: string, methodName: string, ...args: any[]) {
const controller = ensureElementInBody(ctrlName);
return controller.componentOnReady()
@ -15,18 +13,3 @@ export function ensureElementInBody(elementName: string) {
}
return element as HTMLStencilElement;
}
export function removeAllNodeChildren(element: HTMLElement) {
while (element.firstChild) {
element.removeChild(element.firstChild);
}
}
export function isString(something: any) {
return typeof something === 'string' ? true : false;
}
export function getIonApp(): Promise<HTMLIonAppElement> {
const element = ensureElementInBody('ion-app') as HTMLIonAppElement;
return element.componentOnReady();
}