diff options
Diffstat (limited to 'src/Injector.js')
| -rw-r--r-- | src/Injector.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Injector.js b/src/Injector.js index f6cb897f..cd9438e7 100644 --- a/src/Injector.js +++ b/src/Injector.js @@ -47,14 +47,14 @@ function createInjector(providerScope, providers, cache) { returnValue = cache[value]; } else if (isArray(value)) { returnValue = []; - foreach(value, function(name) { + forEach(value, function(name) { returnValue.push(inject(name)); }); } else if (isFunction(value)) { returnValue = inject(value.$inject || []); returnValue = value.apply(scope, concat(returnValue, arguments, 2)); } else if (isObject(value)) { - foreach(providers, function(provider, name){ + forEach(providers, function(provider, name){ if (provider.$eager) inject(name); |
