Skip to content

Commit

Permalink
Merge pull request #128 from Karankang007/master
Browse files Browse the repository at this point in the history
Fixing typescript compilation errors
  • Loading branch information
softsimon authored Apr 10, 2017
2 parents 94084cf + 3723209 commit d22df7f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/multiselect-dropdown.ts
Original file line number Diff line number Diff line change
Expand Up @@ -249,15 +249,15 @@ export class MultiselectDropdown implements OnInit, DoCheck, ControlValueAccesso
}
}

validate(c: AbstractControl): { [key: string]: any; } {
validate(_c: AbstractControl): { [key: string]: any; } {
return (this.model && this.model.length) ? null : {
required: {
valid: false,
},
};
}

registerOnValidatorChange(fn: () => void): void {
registerOnValidatorChange(_fn: () => void): void {
throw new Error('Method not implemented.');
}

Expand All @@ -275,7 +275,7 @@ export class MultiselectDropdown implements OnInit, DoCheck, ControlValueAccesso
return this.model && this.model.indexOf(option.id) > -1;
}

setSelected(event: Event, option: IMultiSelectOption) {
setSelected(_event: Event, option: IMultiSelectOption) {
if (!this.model) {
this.model = [];
}
Expand Down

0 comments on commit d22df7f

Please sign in to comment.