@@ -13,8 +13,8 @@ import {Subject} from 'rxjs/Subject';
13
13
export class OverlayRef implements PortalHost {
14
14
private _backdropElement : HTMLElement = null ;
15
15
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 > ( ) ;
18
18
19
19
constructor (
20
20
private _portalHost : PortalHost ,
@@ -43,7 +43,7 @@ export class OverlayRef implements PortalHost {
43
43
this . updateSize ( ) ;
44
44
this . updateDirection ( ) ;
45
45
this . updatePosition ( ) ;
46
- this . _onAttach . next ( ) ;
46
+ this . _attachments . next ( ) ;
47
47
this . _state . scrollStrategy . enable ( ) ;
48
48
49
49
// Enable pointer events for the overlay pane element.
@@ -68,7 +68,7 @@ export class OverlayRef implements PortalHost {
68
68
// pointer events therefore. Depends on the position strategy and the applied pane boundaries.
69
69
this . _togglePointerEvents ( false ) ;
70
70
this . _state . scrollStrategy . disable ( ) ;
71
- this . _onDetach . next ( ) ;
71
+ this . _detachments . next ( ) ;
72
72
73
73
return this . _portalHost . detach ( ) ;
74
74
}
@@ -84,9 +84,9 @@ export class OverlayRef implements PortalHost {
84
84
this . detachBackdrop ( ) ;
85
85
this . _portalHost . dispose ( ) ;
86
86
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 ( ) ;
90
90
}
91
91
92
92
/**
@@ -104,13 +104,13 @@ export class OverlayRef implements PortalHost {
104
104
}
105
105
106
106
/** 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 ( ) ;
109
109
}
110
110
111
111
/** 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 ( ) ;
114
114
}
115
115
116
116
/**
0 commit comments