"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/lib/bottom-sheet/bottom-sheet-ref.ts" between
material2-7.3.6.tar.gz and material2-7.3.7.tar.gz

About: material2 offers Material Design components for Angular.

bottom-sheet-ref.ts  (material2-7.3.6):bottom-sheet-ref.ts  (material2-7.3.7)
skipping to change at line 60 skipping to change at line 60
containerInstance._animationStateChanged.pipe( containerInstance._animationStateChanged.pipe(
filter(event => event.phaseName === 'done' && event.toState === 'visible') , filter(event => event.phaseName === 'done' && event.toState === 'visible') ,
take(1) take(1)
) )
.subscribe(() => { .subscribe(() => {
this._afterOpened.next(); this._afterOpened.next();
this._afterOpened.complete(); this._afterOpened.complete();
}); });
// Dispose overlay when closing animation is complete // Dispose overlay when closing animation is complete
containerInstance._animationStateChanged.pipe( containerInstance._animationStateChanged
filter(event => event.phaseName === 'done' && event.toState === 'hidden'), .pipe(filter(event => event.phaseName === 'done' && event.toState === 'h
take(1) idden'), take(1))
) .subscribe(() => {
.subscribe(() => { _overlayRef.dispose();
this._overlayRef.dispose(); });
_overlayRef.detachments().pipe(take(1)).subscribe(() => {
this._afterDismissed.next(this._result); this._afterDismissed.next(this._result);
this._afterDismissed.complete(); this._afterDismissed.complete();
}); });
merge( merge(
_overlayRef.backdropClick(), _overlayRef.backdropClick(),
_overlayRef.keydownEvents().pipe(filter(event => event.keyCode === ESCAPE) ) _overlayRef.keydownEvents().pipe(filter(event => event.keyCode === ESCAPE) )
).subscribe(() => { ).subscribe(() => {
if (!this.disableClose) { if (!this.disableClose) {
this.dismiss(); this.dismiss();
 End of changes. 1 change blocks. 
6 lines changed or deleted 8 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)