Skip to content

Commit e933fd8

Browse files
committed
fix imports, revert columnsDiffer as protected
1 parent 2a90771 commit e933fd8

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,7 +34,7 @@ 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) { }
@@ -43,8 +43,8 @@ export abstract class BaseRowDef {
4343
// Create a new columns differ if one does not yet exist. Initialize it based on initial value
4444
// of the columns property.
4545
const columns = changes['columns'].currentValue;
46-
if (!this.columnsDiffer && columns) {
47-
this.columnsDiffer = this._differs.find(columns).create();
46+
if (!this._columnsDiffer && columns) {
47+
this._columnsDiffer = this._differs.find(columns).create();
4848
this._columnsDiffer.diff(columns);
4949
}
5050
}
@@ -54,7 +54,7 @@ export abstract class BaseRowDef {
5454
* if there is no difference.
5555
*/
5656
getColumnsDiff(): IterableChanges<any> | null {
57-
return this.columnsDiffer.diff(this.columns);
57+
return this._columnsDiffer.diff(this.columns);
5858
}
5959
}
6060

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)