From 451a711343f0d902e0a652a98c54d9aa94451b9b Mon Sep 17 00:00:00 2001 From: Igor Minar Date: Tue, 12 Oct 2010 14:14:39 +0800 Subject: fix global namespace polution with invalidWidgets --- src/widgets.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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."; -- cgit v1.2.3