diff options
Diffstat (limited to 'src/widgets.js')
| -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 532627eb..a09ee29d 100644 --- a/src/widgets.js +++ b/src/widgets.js @@ -271,7 +271,7 @@ function valueAccessor(scope, element) {        formatterName = element.attr('ng:format') || NOOP,        formatter = angularFormatter(formatterName),        format, parse, lastError, required, -      invalidWidgets = scope.$invalidWidgets || {markValid:noop, markInvalid:noop}; +      invalidWidgets = scope.$inject('$invalidWidgets') || {markValid:noop, markInvalid:noop};    if (!validator) throw "Validator named '" + validatorName + "' not found.";    if (!formatter) throw "Formatter named '" + formatterName + "' not found.";    format = formatter.format;  | 
