diff options
| author | Igor Minar | 2010-10-12 14:14:39 +0800 |
|---|---|---|
| committer | Misko Hevery | 2010-10-13 04:37:46 +0800 |
| commit | 451a711343f0d902e0a652a98c54d9aa94451b9b (patch) | |
| tree | 548396090c12c0bbb92230b26224d1da53cd13fc /src | |
| parent | 70ff7a2639fc55936854ad04a6242a700ae71a02 (diff) | |
| download | angular.js-451a711343f0d902e0a652a98c54d9aa94451b9b.tar.bz2 | |
fix global namespace polution with invalidWidgets
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 c1342943..90f6837d 100644 --- a/src/widgets.js +++ b/src/widgets.js @@ -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."; |
