fix($injector): remove bogus fn arg

getService fn takes only one argument, removing the second one.

Closes #1711
This commit is contained in:
Igor Minar 2013-01-08 14:36:03 -08:00
parent afd6771163
commit de6cc287e5

View file

@ -557,7 +557,7 @@ function createInjector(modulesToLoad) {
args.push( args.push(
locals && locals.hasOwnProperty(key) locals && locals.hasOwnProperty(key)
? locals[key] ? locals[key]
: getService(key, path) : getService(key)
); );
} }
if (!fn.$inject) { if (!fn.$inject) {