diff options
| author | Misko Hevery | 2010-02-11 09:57:42 -0800 |
|---|---|---|
| committer | Misko Hevery | 2010-02-11 09:57:42 -0800 |
| commit | b2a8a089b6c31c8ff176c2483f659caae4f71afb (patch) | |
| tree | b4b0ccb1598dc824674eff5b19f63af47dc8fbe5 /src | |
| parent | 9d566fe98c3fa0091efef4adb0178f063da74f7c (diff) | |
| download | angular.js-b2a8a089b6c31c8ff176c2483f659caae4f71afb.tar.bz2 | |
make validator more leniant for errors which are false instead of null
Diffstat (limited to 'src')
| -rw-r--r-- | src/Widgets.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Widgets.js b/src/Widgets.js index 6eb2acc3..4f359e91 100644 --- a/src/Widgets.js +++ b/src/Widgets.js @@ -239,7 +239,7 @@ TextController.prototype = { } if (this.lastErrorText !== errorText) { this.lastErrorText = isValidationError; - if (errorText !== null && isVisible(view)) { + if (errorText && isVisible(view)) { view.setAttribute('ng-error', errorText); scope.markInvalid(this); } |
