diff options
| author | Igor Minar | 2011-01-04 11:53:23 -0800 |
|---|---|---|
| committer | Igor Minar | 2011-01-04 18:04:00 -0800 |
| commit | b2631f61709ae71bb29ec6f1353f2a3c1ad33cd3 (patch) | |
| tree | 4c955af5f726d29e2d6004d39403d0843f37711e /src/widgets.js | |
| parent | 1430c6d6b1f4edf11b1bd877e8907ac8ab0be923 (diff) | |
| download | angular.js-b2631f61709ae71bb29ec6f1353f2a3c1ad33cd3.tar.bz2 | |
rename scope.$inject to scope.$service
see changelog diff for more info
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 a09ee29d..05979281 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.$inject('$invalidWidgets') || {markValid:noop, markInvalid:noop}; + invalidWidgets = scope.$service('$invalidWidgets') || {markValid:noop, markInvalid:noop}; if (!validator) throw "Validator named '" + validatorName + "' not found."; if (!formatter) throw "Formatter named '" + formatterName + "' not found."; format = formatter.format; |
