mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-17 07:40:22 +00:00
fix global namespace polution with invalidWidgets
This commit is contained in:
parent
70ff7a2639
commit
451a711343
1 changed files with 1 additions and 1 deletions
|
|
@ -38,7 +38,7 @@ function valueAccessor(scope, element) {
|
|||
requiredExpr = element.attr('ng:required'),
|
||||
formatterName = element.attr('ng:format') || NOOP,
|
||||
formatter = angularFormatter(formatterName),
|
||||
format, parse, lastError, required;
|
||||
format, parse, lastError, required,
|
||||
invalidWidgets = scope.$invalidWidgets || {markValid:noop, markInvalid:noop};
|
||||
if (!validator) throw "Validator named '" + validatorName + "' not found.";
|
||||
if (!formatter) throw "Formatter named '" + formatterName + "' not found.";
|
||||
|
|
|
|||
Loading…
Reference in a new issue