Skip to content
This repository was archived by the owner on Feb 11, 2020. It is now read-only.

Commit 73ed4ea

Browse files
author
Dr. Safi
committed
Changed Naming of methods.
1 parent 6edde5c commit 73ed4ea

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

module/reusableNestedUnit/Unit.class.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export default ({ Superclass }) => {
1313
}
1414

1515
constructor(databaseDocumentKey) {
16-
super()
16+
super()
1717
this.key = databaseDocumentKey
1818
return this
1919
}

module/reusableNestedUnit/implementation/condition/NestedUnit.class.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ export default ({ Superclass }) => {
7777
this.children = await this.additionalChildNestedUnit.slice()
7878
}
7979

80-
let callback = await this.initializeConditionTree({
80+
let callback = await this.initializeNestedUnit({
8181
nestedUnitKey: conditionTreeChild.nestedUnit,
8282
additionalChildNestedUnit: this.children,
8383
pathPointerKey: conditionTreeChild.pathPointerKey

module/reusableNestedUnit/implementation/condition/controllerMixin.mixin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export default Mixin(({ Superclass }) => {
1616
* @param {any} {nestedUnitKey}
1717
* @returns { Object || False } Object containing instruction settings to be used through an implementing module.
1818
*/
19-
async initializeConditionTree({ nestedUnitKey, additionalChildNestedUnit = [], pathPointerKey = null}) { // Entrypoint Instance
19+
async initializeNestedUnit({ nestedUnitKey, additionalChildNestedUnit = [], pathPointerKey = null}) { // Entrypoint Instance
2020
// self.debug.push(nestedUnitKey)
2121
// let nestedUnitInstance = await ConditionTree.createInstance(this.instance.nestedUnit, nestedUnitKey, ConditionTree.getDocumentQuery)
2222

module/reusableNestedUnit/implementation/middleware/NestedUnit.class.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -34,19 +34,19 @@ export default ({ Superclass }) => {
3434
* @returns undifiend for false or any type of value depending on the module being applied.
3535
*/
3636
async loopInsertionPoint() {
37-
let middlewareArray = []
37+
let array = []
3838
// get callback from subtrees
3939
if(this.insertionPoint) {
4040
for (let insertionPoint of this.insertionPoint) {
41-
let subsequentMiddleware = await this.initializeInsertionPoint({ insertionPoint })
42-
if(middlewareArray.length != 0) {
43-
await Array.prototype.push.apply(middlewareArray, subsequentMiddleware)
41+
let subsequentArray = await this.initializeInsertionPoint({ insertionPoint })
42+
if(array.length != 0) {
43+
await Array.prototype.push.apply(array, subsequentArray)
4444
} else {
45-
middlewareArray = await subsequentMiddleware.slice()
45+
array = await subsequentArray.slice()
4646
}
4747
}
4848
}
49-
return middlewareArray;
49+
return array;
5050
}
5151

5252
async initializeInsertionPoint({insertionPoint}) {
@@ -83,15 +83,15 @@ export default ({ Superclass }) => {
8383
} else {
8484
this.children = await this.additionalChildNestedUnit.slice()
8585
}
86-
let subsequentMiddleware = await this.initializeNestedUnit({
86+
let subsequentArray = await this.initializeNestedUnit({
8787
nestedUnitKey: treeChild.nestedUnit,
8888
additionalChildNestedUnit: this.children,
8989
pathPointerKey: treeChild.pathPointerKey
9090
})
9191
if(middlewareArray.length != 0) {
92-
await Array.prototype.push.apply(middlewareArray, subsequentMiddleware)
92+
await Array.prototype.push.apply(middlewareArray, subsequentArray)
9393
} else {
94-
middlewareArray = await subsequentMiddleware.slice()
94+
middlewareArray = await subsequentArray.slice()
9595
}
9696
}
9797

0 commit comments

Comments
 (0)