aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMisko Hevery2010-02-11 09:57:42 -0800
committerMisko Hevery2010-02-11 09:57:42 -0800
commitb2a8a089b6c31c8ff176c2483f659caae4f71afb (patch)
treeb4b0ccb1598dc824674eff5b19f63af47dc8fbe5 /src
parent9d566fe98c3fa0091efef4adb0178f063da74f7c (diff)
downloadangular.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.js2
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);
}