mirror of
https://github.com/nasa/openmct.git
synced 2025-05-09 12:03:21 +00:00
[Search] Cleanup
Variable names, and unused parameters.
This commit is contained in:
parent
b6c1eadb91
commit
d23f4de36a
@ -43,9 +43,10 @@ define(
|
|||||||
* domain objects can be gotten.
|
* domain objects can be gotten.
|
||||||
* @param {WorkerService} workerService The service which allows
|
* @param {WorkerService} workerService The service which allows
|
||||||
* more easy creation of web workers.
|
* more easy creation of web workers.
|
||||||
* @param {roots[]} roots An array of all the root domain objects.
|
* @param {GENERIC_SEARCH_ROOTS[]} ROOTS An array of the root
|
||||||
|
* domain objects.
|
||||||
*/
|
*/
|
||||||
function GenericSearchProvider($q, objectService, workerService, roots) {
|
function GenericSearchProvider($q, objectService, workerService, ROOTS) {
|
||||||
var worker = workerService.run('genericSearchWorker'),
|
var worker = workerService.run('genericSearchWorker'),
|
||||||
pendingQueries = {};
|
pendingQueries = {};
|
||||||
// pendingQueries is a dictionary with the key value pairs st
|
// pendingQueries is a dictionary with the key value pairs st
|
||||||
@ -141,9 +142,9 @@ define(
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Converts the filetree into a list
|
// Converts the filetree into a list
|
||||||
function getItems(timeout) {
|
function getItems() {
|
||||||
// Aquire root objects
|
// Aquire root objects
|
||||||
objectService.getObjects(roots).then(function (objectsById) {
|
objectService.getObjects(ROOTS).then(function (objectsById) {
|
||||||
var objects = [],
|
var objects = [],
|
||||||
id;
|
id;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user