From 25a62b58db31c212c330d1bd7ce58bdd031e114a Mon Sep 17 00:00:00 2001 From: Misko Hevery Date: Tue, 2 Aug 2011 13:29:12 -0700 Subject: 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. --- src/directives.js | 1 + 1 file changed, 1 insertion(+) (limited to 'src/directives.js') 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; -- cgit v1.2.3