aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorShyam Seshadri2010-06-16 10:36:48 -0700
committerShyam Seshadri2010-06-16 10:36:48 -0700
commitb129a1094e6b42ed82c3ccecc2f40daaa0a6cb6a (patch)
treeaae302cd437a5313c7223c1ec62f0f75a7938de3 /src
parent769b26b79eb26076c218cb5b57179ee98424bbd7 (diff)
downloadangular.js-b129a1094e6b42ed82c3ccecc2f40daaa0a6cb6a.tar.bz2
add back nicer formatting
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 30a4a088..efafa9c5 100644
--- a/src/widgets.js
+++ b/src/widgets.js
@@ -87,7 +87,7 @@ function valueAccessor(scope, element) {
validateScope = extend(new (extend(function(){}, {prototype:scope}))(), {$element:element});
error = required && !value ?
'Required' :
- value ? validator(validateScope, value) : null;
+ (value ? validator(validateScope, value) : null);
elementError(element, NG_VALIDATION_ERROR, error);
lastError = error;
if (error) {