From 00e5b7d30a1a82198cc8ce42d2d4023cf097ef9c Mon Sep 17 00:00:00 2001 From: PatrickJS Date: Thu, 11 Aug 2016 23:26:57 -0700 Subject: [PATCH] refactor(SharedStylesHost): remove SetWrapper facade (#10598) --- .../@angular/platform-browser/src/dom/shared_styles_host.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/modules/@angular/platform-browser/src/dom/shared_styles_host.ts b/modules/@angular/platform-browser/src/dom/shared_styles_host.ts index 9ebeb71895..caa0a678c1 100644 --- a/modules/@angular/platform-browser/src/dom/shared_styles_host.ts +++ b/modules/@angular/platform-browser/src/dom/shared_styles_host.ts @@ -7,7 +7,6 @@ */ import {Inject, Injectable} from '@angular/core'; -import {SetWrapper} from '../facade/collection'; import {getDOM} from './dom_adapter'; import {DOCUMENT} from './dom_tokens'; @@ -24,7 +23,7 @@ export class SharedStylesHost { addStyles(styles: string[]) { var additions: any[] /** TODO #9100 */ = []; styles.forEach(style => { - if (!SetWrapper.has(this._stylesSet, style)) { + if (!this._stylesSet.has(style)) { this._stylesSet.add(style); this._styles.push(style); additions.push(style); @@ -56,7 +55,7 @@ export class DomSharedStylesHost extends SharedStylesHost { this._addStylesToHost(this._styles, hostNode); this._hostNodes.add(hostNode); } - removeHost(hostNode: Node) { SetWrapper.delete(this._hostNodes, hostNode); } + removeHost(hostNode: Node) { this._hostNodes.delete(hostNode); } onStylesAdded(additions: string[]) { this._hostNodes.forEach((hostNode) => { this._addStylesToHost(additions, hostNode); });