diff options
| author | Misko Hevery | 2011-08-02 13:29:12 -0700 |
|---|---|---|
| committer | Igor Minar | 2011-10-11 10:53:04 -0700 |
| commit | 25a62b58db31c212c330d1bd7ce58bdd031e114a (patch) | |
| tree | 9a332f36491740dabeabda1c8fa3062c62076ce8 /src/directives.js | |
| parent | 97e3ec4d1b58a253d61c15239002265b33c30a13 (diff) | |
| download | angular.js-25a62b58db31c212c330d1bd7ce58bdd031e114a.tar.bz2 | |
refactor(injection) infer injection args in ng:controller only
Because only controllers don't have currying, we can infer its arguments, all other APIs needing currying, automatic inference complicates the matters unecessary.
Diffstat (limited to 'src/directives.js')
| -rw-r--r-- | src/directives.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/directives.js b/src/directives.js index 4e2b92d4..ca9fe4fc 100644 --- a/src/directives.js +++ b/src/directives.js @@ -174,6 +174,7 @@ angularDirective("ng:controller", function(expression){ getter(scope, expression, true) || getter(window, expression, true); assertArgFn(Controller, expression); + inferInjectionArgs(Controller); return Controller; }); return noop; |
