mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-02 22:37:07 +08:00
fix($injector): remove bogus fn arg
getService fn takes only one argument, removing the second one. Closes #1711
This commit is contained in:
@@ -557,7 +557,7 @@ function createInjector(modulesToLoad) {
|
||||
args.push(
|
||||
locals && locals.hasOwnProperty(key)
|
||||
? locals[key]
|
||||
: getService(key, path)
|
||||
: getService(key)
|
||||
);
|
||||
}
|
||||
if (!fn.$inject) {
|
||||
|
||||
Reference in New Issue
Block a user