Skip to content

Commit 00e5b7d

Browse files
PatrickJSvikerman
authored andcommitted
refactor(SharedStylesHost): remove SetWrapper facade (angular#10598)
1 parent 39c0f9e commit 00e5b7d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

modules/@angular/platform-browser/src/dom/shared_styles_host.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
*/
88

99
import {Inject, Injectable} from '@angular/core';
10-
import {SetWrapper} from '../facade/collection';
1110

1211
import {getDOM} from './dom_adapter';
1312
import {DOCUMENT} from './dom_tokens';
@@ -24,7 +23,7 @@ export class SharedStylesHost {
2423
addStyles(styles: string[]) {
2524
var additions: any[] /** TODO #9100 */ = [];
2625
styles.forEach(style => {
27-
if (!SetWrapper.has(this._stylesSet, style)) {
26+
if (!this._stylesSet.has(style)) {
2827
this._stylesSet.add(style);
2928
this._styles.push(style);
3029
additions.push(style);
@@ -56,7 +55,7 @@ export class DomSharedStylesHost extends SharedStylesHost {
5655
this._addStylesToHost(this._styles, hostNode);
5756
this._hostNodes.add(hostNode);
5857
}
59-
removeHost(hostNode: Node) { SetWrapper.delete(this._hostNodes, hostNode); }
58+
removeHost(hostNode: Node) { this._hostNodes.delete(hostNode); }
6059

6160
onStylesAdded(additions: string[]) {
6261
this._hostNodes.forEach((hostNode) => { this._addStylesToHost(additions, hostNode); });

0 commit comments

Comments
 (0)