refactor(delegate): don't automatically append ion-page, add tests for host-element for modal and nav

This commit is contained in:
Dan Bucholtz
2018-01-09 10:43:50 -06:00
parent d8ad5f4dc8
commit 6156561c1b
7 changed files with 236 additions and 28 deletions

View File

@ -24,14 +24,6 @@ export function isStringOrNumber(v: any): v is (string | number) { return isStri
export function isBlank(val: any): val is null { return val === undefined || val === null; }
export function isElementNav(element: HTMLElement) {
return element.tagName.toUpperCase() === 'ION-NAV';
}
export function isElementModal(element: HTMLElement) {
return element.classList.contains('modal-wrapper');
}
/** @hidden */
export function isCheckedProperty(a: any, b: any): boolean {
if (a === undefined || a === null || a === '') {