File tree Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -50,6 +50,10 @@ export class PersonDataSource extends DataSource<any> {
50
50
} ) ;
51
51
}
52
52
53
+ disconnect ( ) {
54
+ // No-op
55
+ }
56
+
53
57
updateDisplayData ( ) {
54
58
const data = this . _peopleDatabase . data . slice ( ) ;
55
59
Original file line number Diff line number Diff line change @@ -14,5 +14,5 @@ export interface CollectionViewer {
14
14
15
15
export abstract class DataSource < T > {
16
16
abstract connect ( collectionViewer : CollectionViewer ) : Observable < T [ ] > ;
17
- disconnect ( ) { }
17
+ abstract disconnect ( collectionViewer : CollectionViewer ) : void ;
18
18
}
Original file line number Diff line number Diff line change @@ -180,7 +180,7 @@ export class CdkTable<T> implements CollectionViewer {
180
180
this . _onDestroy . next ( ) ;
181
181
this . _onDestroy . complete ( ) ;
182
182
if ( this . dataSource ) {
183
- this . dataSource . disconnect ( ) ;
183
+ this . dataSource . disconnect ( this ) ;
184
184
}
185
185
}
186
186
@@ -236,7 +236,7 @@ export class CdkTable<T> implements CollectionViewer {
236
236
this . _data = [ ] ;
237
237
238
238
if ( this . _dataSource ) {
239
- this . dataSource . disconnect ( ) ;
239
+ this . dataSource . disconnect ( this ) ;
240
240
}
241
241
this . _dataSource = dataSource ;
242
242
You can’t perform that action at this time.
0 commit comments