mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-17 07:40:22 +00:00
add back nicer formatting
This commit is contained in:
parent
769b26b79e
commit
b129a1094e
1 changed files with 1 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue