Skip to content

Commit

Permalink
fix(module:modal): fix modal type error
Browse files Browse the repository at this point in the history
  • Loading branch information
执衡 committed Dec 18, 2017
1 parent b828025 commit 1daa4a0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/components/modal/nz-modal-subject.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,13 @@ const enum modalEvent {
}

@Injectable()
export class NzModalSubject extends Subject<string | object> {
/* tslint:disable-next-line:no-any */
export class NzModalSubject extends Subject<any> {
modalId: string;
eventsQueue = {};

destroy(type: string = 'onCancel'): void {
/* tslint:disable-next-line:no-any */
destroy(type: any = 'onCancel'): void {
if (!this.isStopped && !this.closed) {
this.next(type);
}
Expand Down

0 comments on commit 1daa4a0

Please sign in to comment.