Skip to content

Commit

Permalink
refactor(service): remove deprecated initOptions replaced by init
Browse files Browse the repository at this point in the history
  • Loading branch information
Ghislain Beaulac authored and Ghislain Beaulac committed May 22, 2018
1 parent 247727b commit 08882be
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/app/examples/swt-common-grid.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -314,8 +314,8 @@ export class SwtCommonGridComponent implements OnInit, AfterViewInit, BackendSer
return 'buildQuery...';
}

initOptions( options: BackendServiceOption, pagination?: Pagination ): void {
this.options = options;
init( serviceOptions: BackendServiceOption, pagination?: Pagination ): void {
this.options = serviceOptions;
this.pagination = pagination;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@ export interface BackendService {
/** initialize the backend service with certain options */
init?: (serviceOptions?: BackendServiceOption, pagination?: Pagination, grid?: any) => void;

/** DEPRECATED, please use "init()" instead */
initOptions?: (serviceOptions?: BackendServiceOption, pagination?: Pagination, gridOptions?: GridOption, columnDefinitions?: Column[]) => void;

/** Get the dataset name */
getDatasetName?: () => string;

Expand Down

0 comments on commit 08882be

Please sign in to comment.