@@ -13,8 +13,8 @@ import {Subject} from 'rxjs/Subject';
1313export class OverlayRef implements PortalHost {
1414 private _backdropElement : HTMLElement = null ;
1515 private _backdropClick : Subject < any > = new Subject ( ) ;
16- private _onAttach = new Subject < void > ( ) ;
17- private _onDetach = new Subject < void > ( ) ;
16+ private _attachments = new Subject < void > ( ) ;
17+ private _detachments = new Subject < void > ( ) ;
1818
1919 constructor (
2020 private _portalHost : PortalHost ,
@@ -43,7 +43,7 @@ export class OverlayRef implements PortalHost {
4343 this . updateSize ( ) ;
4444 this . updateDirection ( ) ;
4545 this . updatePosition ( ) ;
46- this . _onAttach . next ( ) ;
46+ this . _attachments . next ( ) ;
4747 this . _state . scrollStrategy . enable ( ) ;
4848
4949 // Enable pointer events for the overlay pane element.
@@ -68,7 +68,7 @@ export class OverlayRef implements PortalHost {
6868 // pointer events therefore. Depends on the position strategy and the applied pane boundaries.
6969 this . _togglePointerEvents ( false ) ;
7070 this . _state . scrollStrategy . disable ( ) ;
71- this . _onDetach . next ( ) ;
71+ this . _detachments . next ( ) ;
7272
7373 return this . _portalHost . detach ( ) ;
7474 }
@@ -84,9 +84,9 @@ export class OverlayRef implements PortalHost {
8484 this . detachBackdrop ( ) ;
8585 this . _portalHost . dispose ( ) ;
8686 this . _state . scrollStrategy . disable ( ) ;
87- this . _onDetach . next ( ) ;
88- this . _onDetach . complete ( ) ;
89- this . _onAttach . complete ( ) ;
87+ this . _detachments . next ( ) ;
88+ this . _detachments . complete ( ) ;
89+ this . _attachments . complete ( ) ;
9090 }
9191
9292 /**
@@ -104,13 +104,13 @@ export class OverlayRef implements PortalHost {
104104 }
105105
106106 /** Returns an observable that emits when the overlay has been attached. */
107- onAttach ( ) : Observable < void > {
108- return this . _onAttach . asObservable ( ) ;
107+ attachments ( ) : Observable < void > {
108+ return this . _attachments . asObservable ( ) ;
109109 }
110110
111111 /** Returns an observable that emits when the overlay has been detached. */
112- onDetach ( ) : Observable < void > {
113- return this . _onDetach . asObservable ( ) ;
112+ detachments ( ) : Observable < void > {
113+ return this . _detachments . asObservable ( ) ;
114114 }
115115
116116 /**
0 commit comments