Skip to content

Commit

Permalink
refactor(treeGrid): row_deleted_parent is now private, remove imports,
Browse files Browse the repository at this point in the history
  • Loading branch information
ViktorSlavov committed Dec 18, 2018
1 parent bd4aaf5 commit b5b1156
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,11 @@ export class IgxTreeGridAPIService extends GridBaseAPIService<IgxTreeGridCompone
return this.row_deleted_parent(id, rowID) || super.row_deleted_transaction(id, rowID);
}

public row_deleted_parent(id: string, rowID: any): boolean {
private row_deleted_parent(id: string, rowID: any): boolean {
const grid = this.get(id);
if (!grid) {
return false;
}
if ((grid.cascadeOnDelete && grid.foreignKey) || grid.childDataKey) {
let node = grid.records.get(rowID);
while (node) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { IgxTreeGridComponent } from './tree-grid.component';
import { IgxRowComponent } from '../row.component';
import { ITreeGridRecord } from './tree-grid.interfaces';
import { IgxTreeGridAPIService } from './tree-grid-api.service';
import { State, TransactionType } from '../../services';
import { GridBaseAPIService } from '../api.service';
import { IgxSelectionAPIService } from '../../core/selection';

Expand Down

0 comments on commit b5b1156

Please sign in to comment.