aboutsummaryrefslogtreecommitdiffstats
path: root/src/directives.js
diff options
context:
space:
mode:
authorMisko Hevery2011-08-02 13:29:12 -0700
committerIgor Minar2011-10-11 10:53:04 -0700
commit25a62b58db31c212c330d1bd7ce58bdd031e114a (patch)
tree9a332f36491740dabeabda1c8fa3062c62076ce8 /src/directives.js
parent97e3ec4d1b58a253d61c15239002265b33c30a13 (diff)
downloadangular.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.js1
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;