File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
modules/@angular/platform-browser/src/dom Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 77 */
88
99import { Inject , Injectable } from '@angular/core' ;
10- import { SetWrapper } from '../facade/collection' ;
1110
1211import { getDOM } from './dom_adapter' ;
1312import { 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 ) ; } ) ;
You can’t perform that action at this time.
0 commit comments