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/Compiler.js | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/Compiler.js') 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); } }, -- cgit v1.2.3