refactor: remove most facades (#12399)

This commit is contained in:
Victor Berchet
2016-10-21 15:14:44 -07:00
committed by Igor Minar
parent e319cfefc3
commit 57051f01ce
47 changed files with 204 additions and 444 deletions

View File

@ -382,7 +382,7 @@ export class Parse5DomAdapter extends DomAdapter {
}
}
hasClass(element: any, className: string): boolean {
return ListWrapper.contains(this.classList(element), className);
return this.classList(element).indexOf(className) > -1;
}
hasStyle(element: any, styleName: string, styleValue: string = null): boolean {
const value = this.getStyle(element, styleName) || '';