aboutsummaryrefslogtreecommitdiffstats
path: root/src/Compiler.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/Compiler.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/Compiler.js')
-rw-r--r--src/Compiler.js2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/Compiler.js b/src/Compiler.js
index 0001f8af..a355444b 100644
--- a/src/Compiler.js
+++ b/src/Compiler.js
@@ -40,8 +40,6 @@ Template.prototype = {
addLinkFn:function(linkingFn) {
if (linkingFn) {
- if (!linkingFn.$inject)
- linkingFn.$inject = [];
this.linkFns.push(linkingFn);
}
},