Skip to content

Commit

Permalink
refactor(module:modal): delete extra private property
Browse files Browse the repository at this point in the history
  • Loading branch information
kekehaoz committed Apr 3, 2019
1 parent a17a244 commit 86858f1
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions components/modal/nz-modal.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,6 @@ export class NzModalComponent<T = any, R = any> extends NzModalRef<T, R>
private previouslyFocusedElement: HTMLElement;
private focusTrap: FocusTrap;
private scrollStrategy: BlockScrollStrategy;
private nzModalGlobalConfig: NzModalConfig;

[key: string]: any; // tslint:disable-line:no-any

Expand All @@ -173,11 +172,10 @@ export class NzModalComponent<T = any, R = any> extends NzModalRef<T, R>
private modalControl: NzModalControlService,
private focusTrapFactory: FocusTrapFactory,
private cdr: ChangeDetectorRef,
@Optional() @Inject(NZ_MODAL_CONFIG) nzModalGlobalConfig: NzModalConfig,
@Optional() @Inject(NZ_MODAL_CONFIG) private nzModalGlobalConfig: NzModalConfig,
@Inject(DOCUMENT) private document: any // tslint:disable-line:no-any
) {
super();
this.nzModalGlobalConfig = nzModalGlobalConfig;
this.scrollStrategy = this.overlay.scrollStrategies.block();
}

Expand Down

0 comments on commit 86858f1

Please sign in to comment.