refactor(validators) rename maxLength validator parameter

Closes #5592
This commit is contained in:
Thomas Henley 2015-12-04 00:15:04 +00:00
parent 19b61b1cf3
commit c6a5d9bc84
1 changed files with 2 additions and 2 deletions

View File

@ -70,8 +70,8 @@ const MAX_LENGTH_VALIDATOR = CONST_EXPR(
export class MaxLengthValidator implements Validator {
private _validator: Function;
constructor(@Attribute("maxlength") minLength: string) {
this._validator = Validators.maxLength(NumberWrapper.parseInt(minLength, 10));
constructor(@Attribute("maxlength") maxLength: string) {
this._validator = Validators.maxLength(NumberWrapper.parseInt(maxLength, 10));
}
validate(c: Control): {[key: string]: any} { return this._validator(c); }