[Code Style] Rename shadowing variables
This commit is contained in:
@@ -164,15 +164,15 @@ define(
|
||||
|
||||
// Examine a group of resolved dependencies to determine
|
||||
// which extension categories still need to be satisfied.
|
||||
function findEmptyExtensionDependencies(extensionGroup) {
|
||||
function findEmptyExtensionDependencies(extGroup) {
|
||||
var needed = {},
|
||||
categories = Object.keys(extensionGroup),
|
||||
categories = Object.keys(extGroup),
|
||||
allExtensions = [];
|
||||
|
||||
// Build up an array of all extensions
|
||||
categories.forEach(function (category) {
|
||||
allExtensions =
|
||||
allExtensions.concat(extensionGroup[category]);
|
||||
allExtensions.concat(extGroup[category]);
|
||||
});
|
||||
|
||||
// Track all extension dependencies exposed therefrom
|
||||
@@ -197,10 +197,9 @@ define(
|
||||
// Register any extension categories that are depended-upon but
|
||||
// have not been declared anywhere; such dependencies are then
|
||||
// satisfied by an empty array, instead of not at all.
|
||||
function registerEmptyDependencies(extensionGroup) {
|
||||
findEmptyExtensionDependencies(
|
||||
extensionGroup
|
||||
).forEach(function (name) {
|
||||
function registerEmptyDependencies(extGroup) {
|
||||
findEmptyExtensionDependencies(extGroup)
|
||||
.forEach(function (name) {
|
||||
$log.info("Registering empty extension category " + name);
|
||||
app.factory(name, [staticFunction([])]);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user