refactor(core): remove more misc unused utilities from DomAdapters (#32291)

PR Close #32291
This commit is contained in:
Kara Erickson
2019-08-27 16:39:33 -07:00
committed by Miško Hevery
parent f3e4cb491e
commit b094936d72
4 changed files with 13 additions and 48 deletions

View File

@ -46,8 +46,6 @@ export class DominoAdapter extends BrowserDomAdapter {
private static defaultDoc: Document;
logError(error: string) { console.error(error); }
log(error: string) {
// tslint:disable-next-line:no-console
console.log(error);
@ -59,15 +57,6 @@ export class DominoAdapter extends BrowserDomAdapter {
supportsDOMEvents(): boolean { return false; }
contains(nodeA: any, nodeB: any): boolean {
let inner = nodeB;
while (inner) {
if (inner === nodeA) return true;
inner = inner.parent;
}
return false;
}
createHtmlDocument(): HTMLDocument {
return parseDocument('<html><head><title>fakeTitle</title></head><body></body></html>');
}
@ -86,7 +75,7 @@ export class DominoAdapter extends BrowserDomAdapter {
getProperty(el: Element, name: string): any {
if (name === 'href') {
// Domino tries tp resolve href-s which we do not want. Just return the
// Domino tries to resolve href-s which we do not want. Just return the
// attribute value.
return this.getAttribute(el, 'href');
} else if (name === 'innerText') {