"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/lib/datepicker/calendar.ts" between
material2-7.3.2.tar.gz and material2-7.3.3.tar.gz

About: material2 offers Material Design components for Angular.

calendar.ts  (material2-7.3.2):calendar.ts  (material2-7.3.3)
skipping to change at line 321 skipping to change at line 321
this.focusActiveCell(); this.focusActiveCell();
} }
} }
ngOnDestroy() { ngOnDestroy() {
this._intlChanges.unsubscribe(); this._intlChanges.unsubscribe();
this.stateChanges.complete(); this.stateChanges.complete();
} }
ngOnChanges(changes: SimpleChanges) { ngOnChanges(changes: SimpleChanges) {
const change = changes.minDate || changes.maxDate || changes.dateFilter; const change =
changes['minDate'] || changes['maxDate'] || changes['dateFilter'];
if (change && !change.firstChange) { if (change && !change.firstChange) {
const view = this._getCurrentViewComponent(); const view = this._getCurrentViewComponent();
if (view) { if (view) {
// We need to `detectChanges` manually here, because the `minDate`, `max Date` etc. are // We need to `detectChanges` manually here, because the `minDate`, `max Date` etc. are
// passed down to the view via data bindings which won't be up-to-date w hen we call `_init`. // passed down to the view via data bindings which won't be up-to-date w hen we call `_init`.
this._changeDetectorRef.detectChanges(); this._changeDetectorRef.detectChanges();
view._init(); view._init();
} }
 End of changes. 1 change blocks. 
1 lines changed or deleted 2 lines changed or added

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