Skip to content

Commit d0bb45d

Browse files
committed
fix imports, revert columnsDiffer as protected
1 parent b53bc70 commit d0bb45d

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

src/cdk/table/row.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@
99
import {
1010
ChangeDetectionStrategy,
1111
Component,
12-
Directive, IterableChanges,
12+
Directive,
13+
IterableChanges,
1314
IterableDiffer,
1415
IterableDiffers,
1516
SimpleChanges,
1617
TemplateRef,
1718
ViewContainerRef
1819
} from '@angular/core';
1920
import {CdkCellDef} from './cell';
20-
import {Subject} from 'rxjs/Subject';
2121

2222
/**
2323
* The row template that can be used by the md-table. Should not be used outside of the
@@ -34,16 +34,16 @@ export abstract class BaseRowDef {
3434
columns: string[];
3535

3636
/** Differ used to check if any changes were made to the columns. */
37-
columnsDiffer: IterableDiffer<any>;
37+
protected _columnsDiffer: IterableDiffer<any>;
3838

3939
constructor(public template: TemplateRef<any>,
4040
protected _differs: IterableDiffers) { }
4141

4242
ngOnChanges(changes: SimpleChanges): void {
4343
// Create a new columns differ if one does not yet exist. Initialize it based on initial value
4444
// of the columns property.
45-
if (!this.columnsDiffer && changes['columns'].currentValue) {
46-
this.columnsDiffer = this._differs.find(changes['columns'].currentValue).create();
45+
if (!this._columnsDiffer && changes['columns'].currentValue) {
46+
this._columnsDiffer = this._differs.find(changes['columns'].currentValue).create();
4747
}
4848
}
4949

@@ -52,7 +52,7 @@ export abstract class BaseRowDef {
5252
* if there is no difference.
5353
*/
5454
getColumnsDiff(): IterableChanges<any> | null {
55-
return this.columnsDiffer.diff(this.columns);
55+
return this._columnsDiffer.diff(this.columns);
5656
}
5757
}
5858

src/cdk/table/table.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ import {BehaviorSubject} from 'rxjs/BehaviorSubject';
3636
import {Subscription} from 'rxjs/Subscription';
3737
import {Subject} from 'rxjs/Subject';
3838
import {CdkCellDef, CdkColumnDef, CdkHeaderCellDef} from './cell';
39-
import {startWith} from 'rxjs/operator/startWith';
4039

4140
/**
4241
* Returns an error to be thrown when attempting to find an unexisting column.

0 commit comments

Comments
 (0)