"Fossies" - the Fresh Open Source Software Archive  

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

About: material2 offers Material Design components for Angular.

drawer.ts  (material2-7.3.6):drawer.ts  (material2-7.3.7)
skipping to change at line 345 skipping to change at line 345
} }
} }
ngOnDestroy() { ngOnDestroy() {
if (this._focusTrap) { if (this._focusTrap) {
this._focusTrap.destroy(); this._focusTrap.destroy();
} }
this._animationStarted.complete(); this._animationStarted.complete();
this._animationEnd.complete(); this._animationEnd.complete();
this._modeChanged.complete();
this._destroyed.next(); this._destroyed.next();
this._destroyed.complete(); this._destroyed.complete();
} }
/** /**
* Whether the drawer is opened. We overload this because we trigger an event when it * Whether the drawer is opened. We overload this because we trigger an event when it
* starts or end. * starts or end.
*/ */
@Input() @Input()
get opened(): boolean { return this._opened; } get opened(): boolean { return this._opened; }
skipping to change at line 560 skipping to change at line 561
this._changeDetectorRef.markForCheck(); this._changeDetectorRef.markForCheck();
}); });
this._doCheckSubject.pipe( this._doCheckSubject.pipe(
debounceTime(10), // Arbitrary debounce time, less than a frame at 60fps debounceTime(10), // Arbitrary debounce time, less than a frame at 60fps
takeUntil(this._destroyed) takeUntil(this._destroyed)
).subscribe(() => this._updateContentMargins()); ).subscribe(() => this._updateContentMargins());
} }
ngOnDestroy() { ngOnDestroy() {
this._contentMarginChanges.complete();
this._doCheckSubject.complete(); this._doCheckSubject.complete();
this._destroyed.next(); this._destroyed.next();
this._destroyed.complete(); this._destroyed.complete();
} }
/** Calls `open` of both start and end drawers */ /** Calls `open` of both start and end drawers */
open(): void { open(): void {
this._drawers.forEach(drawer => drawer.open()); this._drawers.forEach(drawer => drawer.open());
} }
 End of changes. 2 change blocks. 
0 lines changed or deleted 2 lines changed or added

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