mirror of
https://github.com/nasa/openmct.git
synced 2025-02-22 10:11:06 +00:00
[Search] Style compliance
This commit is contained in:
parent
1fe492cc3d
commit
836c508698
@ -122,20 +122,18 @@ define(
|
|||||||
|
|
||||||
// Helper function for getItems(). Indexes the tree.
|
// Helper function for getItems(). Indexes the tree.
|
||||||
function indexItems(nodes) {
|
function indexItems(nodes) {
|
||||||
var i;
|
nodes.forEach(function (node) {
|
||||||
|
|
||||||
for (i = 0; i < nodes.length; i += 1) {
|
|
||||||
// Index each item with the web worker
|
// Index each item with the web worker
|
||||||
indexItem(nodes[i]);
|
indexItem(node);
|
||||||
|
|
||||||
if (nodes[i].hasCapability('composition')) {
|
if (node.hasCapability('composition')) {
|
||||||
// This node has children
|
// This node has children
|
||||||
nodes[i].getCapability('composition').invoke().then(function (children) {
|
node.getCapability('composition').invoke().then(function (children) {
|
||||||
// Index the children
|
// Index the children
|
||||||
indexItems(children);
|
indexItems(children);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// Converts the filetree into a list
|
// Converts the filetree into a list
|
||||||
|
Loading…
x
Reference in New Issue
Block a user